/* Main theme colors */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --background-color: #f7f7f7;
    --text-color: #2C3E50;
    --success-color: #2ECC71;
    --warning-color: #F1C40F;
    --error-color: #E74C3C;
}

/* Global styles */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Header */
.header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 15px;
}

.nav-menu a {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--text-color);
}

/* Burger menu button */
.burger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100; /* Higher than nav-menu */
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hidden by default */
        flex-direction: column;
        align-items: flex-center;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        right: 0;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 1rem;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        width: 100%; /* Full width for dropdown effect */
        z-index: 1000; /* Ensure menu is on top */
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateY(-20px); /* Hidden state */
        opacity: 0; /* Hidden state */
    }

    .burger-menu {
        display: block; /* Visible on mobile */
    }

    .nav-menu a {
        display: block;
        width: 100%; /* Make links stretch full width */
        padding: 1rem 2rem; /* More padding for easier clicking */
        border-bottom: 1px solid #444;
        text-align: center;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
        transform: translateY(0); /* Visible state */
        opacity: 1; /* Visible state */
    }
}

/* Buttons */
.btn {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--text-color);
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Brand Grid Layout */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.brand-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid var(--secondary-color);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.brand-logo-container {
    width: 100%;
    /*height: 120px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-bottom: 15px;*/
}

.brand-logo {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border-radius: 50%;
}

.brand-info {
    flex-grow: 1;
    text-align: center;
    padding: 10px;
}

.brand-info h3 {
    color: var(--primary-color);
    margin: 10px 0;
    font-size: 1.5em;
}

.brand-info p {
    color: var(--text-color);
    margin-bottom: 10px;
}

.brand-value {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px 0;
}

.brand-actions {
    /*margin-top: 15px;*/
    display: flex;
    flex-direction: column;
    gap: 10px;
    /*padding: 10px;*/
    align-items: center;
}

.claim-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.claim-select {
    padding: 8px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
}

.owner-info {
    text-align: center;
}

.owner-badge {
    display: inline-block;
    background-color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Messages */
.messages {
    margin: 20px 0;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    animation: slideIn 0.5s ease;
}

.message.success {
    background-color: var(--success-color);
    color: white;
}

.message.error {
    background-color: var(--error-color);
    color: white;
}

/* Notifications */
.notifications-wrapper {
    position: relative;
    display: inline-block;
}

.notifications-btn {
    position: relative;
    padding-right: 2.5rem;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .header h1 {
        font-size: 2em;
    }

    .brand-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.row p {
    text-align: center;
}

div#cookieConsent {
    padding-top: 10px;
}