/* Global Theme CSS - Steal A Brainrot */
/* This file ensures consistent theming across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #0a0a0a !important;
    color: #a0a2a1 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure all page containers have consistent background */
.page-container,
.main-content,
.hero-section,
.profile-container,
.vouches-container,
.privacy-container,
.tos-container,
.login-container {
    background-color: #0a0a0a !important;
}

/* Custom Scrollbar - Consistent across all pages */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Consistent text colors */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

p, span, div {
    color: #a0a2a1;
}

/* Consistent link colors */
a {
    color: #a0a2a1;
    transition: all 0.2s ease;
}

a:hover {
    color: #ffffff;
}

/* Consistent button styling */
.btn, .button, button {
    font-family: inherit;
    transition: all 0.2s ease;
}

/* Consistent form styling */
input, textarea, select {
    font-family: inherit;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

/* Consistent glassmorphism effects */
.glass-effect {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-effect-strong {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Ensure no grey backgrounds anywhere */
.container, .content, .wrapper, .section {
    background-color: transparent !important;
}

/* Override any potential grey backgrounds */
[style*="background-color: grey"],
[style*="background-color: gray"],
[style*="background: grey"],
[style*="background: gray"] {
    background-color: #0a0a0a !important;
}

/* ===== MOBILE RESPONSIVENESS ===== */

/* Base mobile-first styles */
.page-container,
.main-content,
.hero-section,
.profile-container,
.vouches-container,
.privacy-container,
.tos-container,
.login-container {
    padding: 16px;
    margin: 0 auto;
    max-width: 100%;
}

/* Mobile typography */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    h4, h5, h6 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
}

/* Mobile containers */
@media (max-width: 768px) {
    .page-container,
    .main-content,
    .hero-section,
    .profile-container,
    .vouches-container,
    .privacy-container,
    .tos-container,
    .login-container {
        padding: 12px;
        margin: 0;
        width: 100%;
        min-height: auto;
    }

    .hero-section {
        min-height: 60vh;
        padding: 24px 12px;
        text-align: center;
    }
}

/* Mobile buttons */
@media (max-width: 768px) {
    .btn, .button, button {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 12px;
        border-radius: 8px;
        display: block;
        text-align: center;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    /* Button groups on mobile */
    .hero-buttons,
    .button-group,
    .profile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
}

/* Mobile forms */
@media (max-width: 768px) {
    input, textarea, select {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        margin-bottom: 12px;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row > * {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .navbar-brand img {
        width: 24px;
        height: 24px;
    }
}

/* Mobile cards and content */
@media (max-width: 768px) {
    .card, .glass-effect, .glass-effect-strong {
        margin: 8px 0;
        padding: 16px;
        border-radius: 12px;
    }

    .grid, .items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .three-column {
        grid-template-columns: 1fr;
    }

    .four-column {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile tables */
@media (max-width: 768px) {
    table {
        font-size: 12px;
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    thead {
        display: none;
    }

    tbody, tr, td {
        display: block;
        width: 100%;
    }

    tr {
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.5);
    }

    td {
        text-align: left;
        padding: 4px 0;
        border: none;
    }

    td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #ffffff;
    }
}

/* Mobile spacing utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-no-margin {
        margin: 0 !important;
    }

    .mobile-small-padding {
        padding: 8px !important;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-container,
    .main-content {
        padding: 24px;
        max-width: 90%;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-column {
        grid-template-columns: repeat(2, 1fr);
    }

    .four-column {
        grid-template-columns: repeat(3, 1fr);
    }
}
