/* ================================================
   FETCHIT-AI GLOBAL STYLES
   Universal styling for all pages
   ================================================ */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ================================================
   UNIVERSAL FONT FAMILY
   ================================================ */
* {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ================================================
   NO ITALICS - EVER
   ================================================ */
*, em, i, cite, var, address, dfn {
    font-style: normal !important;
}

/* ================================================
   HEADING STYLES WITH BEVEL AND DROP SHADOW
   ================================================ */

/* Main Page Headers (H1) - Light Blue with Drop Shadow and Bevel */
h1, .page-header h1, .main-header, .name-text {
    color: #49affc !important; /* Light Blue */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7),        /* Drop shadow */
        -1px -1px 2px rgba(255, 255, 255, 0.3), /* Bevel highlight */
        1px 1px 2px rgba(0, 0, 0, 0.5) !important; /* Bevel shadow */
    font-weight: 700 !important;
}

/* Second Tier Headings (H2) - Yellow with Drop Shadow and Bevel */
h2, .card-title, .section-header {
    color: #fcee49 !important; /* Yellow */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7),        /* Drop shadow */
        -1px -1px 2px rgba(255, 255, 255, 0.3), /* Bevel highlight */
        1px 1px 2px rgba(0, 0, 0, 0.5) !important; /* Bevel shadow */
    font-weight: 600 !important;
}

/* Third Tier Headings (H3) - Green with Drop Shadow and Bevel */
h3 {
    color: #0fa327 !important; /* Green */
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7),        /* Drop shadow */
        -1px -1px 2px rgba(255, 255, 255, 0.3), /* Bevel highlight */
        1px 1px 2px rgba(0, 0, 0, 0.5) !important; /* Bevel shadow */
    font-weight: 600 !important;
}

/* ================================================
   TEXT STYLES
   ================================================ */

/* All Body Text - White */
p, li, span, div, td, th, label, .card-description {
    color: white !important;
}

/* Bold Text - Green with Bevel */
strong, b {
    color: #0fa327 !important; /* Green */
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.5),
        -0.5px -0.5px 1px rgba(255, 255, 255, 0.2) !important;
    font-weight: 700 !important;
}

/* Links - Green with Bevel */
a:not(.nav-links a):not(.dropdown-content a):not(.content-card):not(.partner-card) {
    color: #0fa327 !important; /* Green */
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.5),
        -0.5px -0.5px 1px rgba(255, 255, 255, 0.2) !important;
    text-decoration: underline;
    font-weight: 600 !important;
}

a:not(.nav-links a):not(.dropdown-content a):not(.content-card):not(.partner-card):hover {
    color: #12d434 !important; /* Lighter green on hover */
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.7),
        -0.5px -0.5px 1px rgba(255, 255, 255, 0.3) !important;
}

/* ================================================
   UNIVERSAL BUTTON STYLES
   Match navigation button style exactly
   ================================================ */

button,
.btn,
.button,
input[type="submit"],
input[type="button"],
.action-button,
.submit-button {
    color: white !important;
    text-decoration: none !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 2px 3px !important;
    border-radius: 6px !important;
    text-align: center !important;
    background: rgba(59, 130, 246, 0.2) !important;
    border: 2px solid #3b82f6 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-shadow: none !important;
}

button:hover,
.btn:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.action-button:hover,
.submit-button:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Yellow/Gold Button Variant */
.button-yellow,
.button.button-yellow,
button.button-yellow {
    background: rgba(251, 191, 36, 0.3) !important;
    border: 2px solid #fbbf24 !important;
    color: white !important;
}

.button-yellow:hover,
.button.button-yellow:hover,
button.button-yellow:hover {
    background: rgba(251, 191, 36, 0.5) !important;
    border: 2px solid #fbbf24 !important;
}

/* ================================================
   CONTENT CARD CONSISTENCY
   Ensure all content cards match home page style
   ================================================ */

.content-card, .partner-card-small {
    background: rgba(30, 30, 30, 0.10) !important;
    backdrop-filter: blur(6px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(6px) saturate(180%) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.content-card:hover, .partner-card-small:hover {
    background: rgba(30, 30, 30, 0.65) !important;
    transform: translateY(-5px) !important;
}

/* ================================================
   SPECIAL OVERRIDES
   Preserve navigation and header styling
   ================================================ */

/* ================================================
   NAVIGATION BUTTON STYLES
   Universal navigation for all pages
   ================================================ */

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1400px;
}

/* Responsive nav buttons: font-size and padding scale with viewport width */
.nav-links a {
    color: white !important;
    text-decoration: none !important;
    font-size: clamp(0.7em, 0.5vw + 0.6em, 0.95em) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 2px clamp(8px, 1.5vw + 5px, 25px) !important;
    border-radius: 6px !important;
    text-align: center;
    background: rgba(59, 130, 246, 0.2) !important;
    border: 2px solid #3b82f6 !important;
    white-space: nowrap;
    text-shadow: none !important; /* Override global link shadow */
}

.nav-links a:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* On narrow screens, stack logo above nav and center buttons underneath */
@media (max-width: 768px) {
    nav .nav-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    nav .nav-links {
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }
}

/* Keep logo styling independent */
nav, .logo-container, .logo-container * {
    /* Logo preserves its own styling */
}

/* Ensure dropdown content stays styled correctly */
.dropdown-content, .dropdown-content * {
    /* Dropdown preserves its own styling */
}
