/*
 * ORE Studio Website Stylesheet
 * Featuring Dark and Light Themes
 */

/* --- Theme Variables and Base Styles --- */

:root {
    /* Default to Light Theme */
    --background-color: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --accent-color: #007bff;
    --accent-hover-color: #0056b3;
    --code-bg: #f8f8f8;
    --code-text: #d63384;
    --border-color: #eeeeee;
    --card-bg: #f8f9fa;
    --footer-bg: #f4f4f4;
}

/* Dark Theme Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1e1e1e;
        --text-color: #dddddd;
        --heading-color: #ffffff;
        --link-color: #90caf9;
        --link-hover-color: #64b5f6;
        --accent-color: #0056b3;
        --accent-hover-color: #0056b3;
        --code-bg: #2d2d2d;
        --code-text: #ff6347;
        --border-color: #333333;
        --card-bg: #2d2d2d;
        --footer-bg: #111111;
    }
}

/* Global Reset and Body Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.1em;
}

/* Ensure content is centered and readable */
#content {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; border-bottom: 2px solid var(--border-color); padding-bottom: 5px; }
h3 { font-size: 1.5em; }

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Emphasis and Code */
strong, b {
    font-weight: bold;
    color: var(--heading-color); /* Slightly more emphasis */
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: var(--code-bg);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--code-text);
    font-size: 0.95em;
}

/* Images and Lists */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for images */
}

ul {
    list-style-type: disc;
    padding-left: 25px;
}

ul li {
    margin-bottom: 0.5em;
}

/* --- Navigation and Header (Your Custom HTML) --- */

header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    color: var(--heading-color);
    font-weight: 500;
    padding: 5px 10px;
    text-transform: uppercase;
    font-size: 0.9em;
    border-bottom: 2px solid transparent;
}

.nav ul li a:hover {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 2px solid var(--link-color);
}

/* --- Hero Section (Your Custom HTML) --- */

.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg); /* Use card-bg for a slight visual pop */
    margin-bottom: 3em;
}

.hero .banner {
    max-width: 80%;
    margin-bottom: 1.5em;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.8em;
    margin-top: 0.5em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 1em auto 2em;
    color: var(--text-color);
}

/* --- Button Styling --- */

.btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 20px;
    background-color: var(--accent-color);
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: var(--accent-hover-color);
    color: var(--background-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Feature Grid and Cards (Your Custom HTML) --- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 2em 0;
    padding: 10px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* --- Badge/Shield Styling Fix --- */

/* 1. Center the entire container */
.badge-wrapper {
    text-align: left;
    margin: 2em 0;
}

/* 2. *** FIX: Target the ANCHOR tag (the link) directly *** */
.badge-wrapper a {
    /* Override general link styles (e.g., in case you added padding/border on <a>) */
    text-decoration: none !important; /* Force no underline */
    border: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Ensure they are treated as blocks for vertical-align and margin */
}

.badge-wrapper a:hover {
    text-decoration: none !important; /* Keep underline off on hover */
    /* You might want to remove link color changes on hover for these badges */
    color: inherit; /* Inherit color from the parent, which shouldn't affect the badge image */
}

/* 3. Target the image inside the link */
.badge-wrapper img {
    /* Revert display property to allow horizontal flow */
    display: inline-block;

    /* Remove the huge vertical margin and add a small, balanced margin */
    margin: 0px 0px;

    /* Remove the box shadow which looks bad on small shields */
    box-shadow: none;

    /* Ensure no vertical offset issues */
    vertical-align: middle;
}

.note {
    background: #fff9e6;
    border-left: 4px solid #ffeb3b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}
