/* Color Variables for Light Mode */
:root {
    --main-bg: #DED9CC;
    /* True Ivory */
    --surface-cards: #FFFFFF;
    /* Pure White */
    --primary-text: #567BAC;
    /* Washed Indigo */
    --secondary-text: #708090;
    /* Dusty Slate */
    --action-button: #A28028;
    /* Golden Ochre */
    --alerts-featured: #D7843E;
    /* Sunset Coral */
    --dividers-borders: #C9C4B8;
    /* Sandstone */
}

/* Color Variables for Dark Mode */
html[data-theme='dark'] {
    --main-bg: #1A222E;
    /* Midnight Atlantic */
    --surface-cards: #252E3A;
    /* Wet Slate */
    --primary-text: #E8E4D8;
    /* Sun-Bleached Linen */
    --secondary-text: #8A95A5;
    /* Mist Grey */
    --action-button: #C49B35;
    /* Vivid Ochre */
    --alerts-featured: #E59654;
    /* Deep Coral */
    --dividers-borders: #2E3A4D;
    /* Shadow Blue */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-bg);
    /* Use variable */
    color: var(--primary-text);
    /* Use variable */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Smooth transition */
}

a {
    color: var(--primary-text);
    text-decoration: none;
}

a:hover {
    color: var(--action-button);
}

header {
    background-color: var(--surface-cards);
    /* Use variable for header background */
    color: var(--primary-text);
    /* Use variable */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo-container img {
    height: 40px;
    /* Adjust as needed */
    margin-right: 10px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header a {
    color: var(--primary-text);
    /* Use variable */
    text-decoration: none;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--primary-text);
    /* Use variable */
    text-decoration: none;
    font-weight: bold;
}

.container {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--surface-cards);
    /* Use variable */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 60vh;
    border: 1px solid var(--dividers-borders);
    /* Use variable */
}

footer {
    background-color: var(--surface-cards);
    /* Use variable */
    color: var(--secondary-text);
    /* Use variable */
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow */
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

.message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    /* Default transparent border */
}

.message.error {
    background-color: #f2dede;
    /* Hardcoded for alerts or use a variable from theme */
    color: #a94442;
    border-color: #ebccd1;
}

.message.success {
    background-color: #dff0d8;
    /* Hardcoded for alerts or use a variable from theme */
    color: #3c763d;
    border-color: #d6e9c6;
}

/* Style for buttons and forms to use theme colors */
button,
input[type="submit"] {
    background-color: var(--action-button);
    color: var(--surface-cards);
    /* Assuming white text on buttons */
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: auto;
    /* Adjusted from 100% to allow for inline buttons */
    transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    filter: brightness(1.1);
    /* Slightly brighter on hover */
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
    background-color: var(--main-bg);
    color: var(--primary-text);
    border: 1px solid var(--dividers-borders);
    padding: 8px;
    border-radius: 4px;
    width: calc(100% - 18px);
    /* Adjust for padding and border */
    box-sizing: border-box;
    /* Include padding and border in width */
}

.theme-switch {
    margin-left: 20px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.2em;
    padding: 0;
    /* Remove default button padding */
}

.theme-switch:hover {
    color: var(--action-button);
}

/* Specific styles for login/register forms - using variables */
.login-container,
.register-container {
    background-color: var(--surface-cards);
    color: var(--primary-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    border: 1px solid var(--dividers-borders);
}

.login-container h2,
.register-container h2 {
    color: var(--primary-text);
}

.login-container a,
.register-container a {
    color: var(--action-button);
}

/* Adjusting header h1 color */
header h1 a {
    color: var(--primary-text) !important;
    /* Override default white */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--surface-cards);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--dividers-borders);
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    position: relative;
    color: var(--primary-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    color: var(--secondary-text);
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-text);
}

.modal-content h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 25px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    margin-bottom: 15px;
}

.modal-content p {
    text-align: center;
    margin-top: 15px;
}

.modal-content a {
    color: var(--action-button);
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

/* Mouse Follower Whale */
.mouse-whale {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    font-size: 24px;
    color: var(--action-button);
    transition: transform 0.15s ease-out;
    /* The delay effect */
    transform: translate(-50%, -50%);
    left: 0;
    top: 0;
    opacity: 0.8;
}

/* Category Card Variations & Animations */
.category-card {
    border: 1px solid var(--dividers-borders);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--surface-cards);
    animation: fadeInUp 0.6s ease-out both;
}

.hero-section {
    position: relative;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin: -20px -20px 40px -20px;
    /* Bleed out of container padding */
    border-radius: 8px 8px 0 0;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2em;
    max-width: 600px;
}

.fade-in {
    animation: fadeInEffect 2s ease-in forwards;
}

@keyframes fadeInEffect {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.talent-cta {
    background-color: var(--action-button);
    color: white !important;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.2s;
}

.talent-cta:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.category-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Specific colorful borders/accents for cards */
.cat-0 {
    border-top: 5px solid #567BAC;
}

.cat-1 {
    border-top: 5px solid #D7843E;
}

.cat-2 {
    border-top: 5px solid #A28028;
}

.cat-3 {
    border-top: 5px solid #5cb85c;
}

.cat-4 {
    border-top: 5px solid #d9534f;
}

.cat-5 {
    border-top: 5px solid #5bc0de;
}

.cat-6 {
    border-top: 5px solid #9b59b6;
}

.cat-7 {
    border-top: 5px solid #34495e;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulsing Glow Animation - Default (Orange/Gold) */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px var(--alerts-featured);
        border-color: var(--alerts-featured);
    }

    50% {
        box-shadow: 0 0 15px var(--alerts-featured), 0 0 5px var(--action-button);
        border-color: var(--action-button);
    }

    100% {
        box-shadow: 0 0 5px var(--alerts-featured);
        border-color: var(--alerts-featured);
    }
}

/* Pulse Blue */
@keyframes pulseBlue {
    0% {
        box-shadow: 0 0 5px #567BAC;
        border-color: #567BAC;
    }

    50% {
        box-shadow: 0 0 15px #567BAC, 0 0 5px #4a90e2;
        border-color: #4a90e2;
    }

    100% {
        box-shadow: 0 0 5px #567BAC;
        border-color: #567BAC;
    }
}

/* Pulse Green */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 5px #5cb85c;
        border-color: #5cb85c;
    }

    50% {
        box-shadow: 0 0 15px #5cb85c, 0 0 5px #4cae4c;
        border-color: #4cae4c;
    }

    100% {
        box-shadow: 0 0 5px #5cb85c;
        border-color: #5cb85c;
    }
}

/* Pulse Purple */
@keyframes pulsePurple {
    0% {
        box-shadow: 0 0 5px #9b59b6;
        border-color: #9b59b6;
    }

    50% {
        box-shadow: 0 0 15px #9b59b6, 0 0 5px #8e44ad;
        border-color: #8e44ad;
    }

    100% {
        box-shadow: 0 0 5px #9b59b6;
        border-color: #9b59b6;
    }
}

/* Pulse Red */
@keyframes pulseRed {
    0% {
        box-shadow: 0 0 5px #d9534f;
        border-color: #d9534f;
    }

    50% {
        box-shadow: 0 0 15px #d9534f, 0 0 5px #c9302c;
        border-color: #c9302c;
    }

    100% {
        box-shadow: 0 0 5px #d9534f;
        border-color: #d9534f;
    }
}

.featured-business-card {
    border: 2px solid var(--alerts-featured);
    animation: pulseGlow 2s infinite ease-in-out;
    padding: 15px;
    border-radius: 8px;
    background: var(--surface-cards);
    transition: transform 0.2s;
}

.featured-business-card.glow-blue {
    animation-name: pulseBlue;
    border-color: #567BAC;
}

.featured-business-card.glow-green {
    animation-name: pulseGreen;
    border-color: #5cb85c;
}

.featured-business-card.glow-purple {
    animation-name: pulsePurple;
    border-color: #9b59b6;
}

.featured-business-card.glow-red {
    animation-name: pulseRed;
    border-color: #d9534f;
}

.featured-business-card:hover {
    transform: scale(1.02);
}

/* Common Business Card Style */
.business-card {
    border: 1px solid var(--dividers-borders);
    padding: 20px;
    border-radius: 8px;
    background-color: var(--surface-cards);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.3s;
    height: 100%;
}

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

/* Border Variations */
.border-blue {
    border-left: 5px solid #567BAC;
}

.border-orange {
    border-left: 5px solid #D7843E;
}

.border-gold {
    border-left: 5px solid #A28028;
}

.border-green {
    border-left: 5px solid #5cb85c;
}

.border-red {
    border-left: 5px solid #d9534f;
}

.border-purple {
    border-left: 5px solid #9b59b6;
}

.border-cyan {
    border-left: 5px solid #5bc0de;
}

.border-dark {
    border-left: 5px solid #34495e;
}