/* QA Members - Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
    --qa-gold: #c9b28b;
    --qa-dark: #111111;
    --qa-darker: #222222;
    --qa-gray: #444444;
    --qa-light-gray: #999999;
    --qa-white: #f9f9f9;
}

/* Global Styles */
body {
    background: #111111 url("../images/art/QA-members_tiled_bg4.png") center repeat;
    color: white;
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--qa-dark) !important;
    font-family: "Playfair Display", serif !important;
}

#content {
    background: transparent;
    color: white;
    padding: 30px 0;
    min-height: calc(100vh - 300px);
}

/* ReactModalPortal Placeholder */
.ReactModalPortal {
    background: var(--qa-dark);
    border-bottom: 2px solid var(--qa-gold);
    min-width: 100%;
}

.header-placeholder {
    min-height: 80px;
    background: var(--qa-darker);
    border: 2px dashed var(--qa-gray);
}

/* Navigation */
.navbar {
    background-color: var(--qa-darker) !important;
    font-family: 'Roboto', sans-serif;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.nav-link {
	font-size: 108%;
	text-transform: uppercase;
    color: var (--qa-gold) !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--qa-white) !important;
    background-color: rgba(201, 178, 139, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
}

.dropdown-menu {
    background-color: var(--qa-darker);
    border: 1px solid var(--qa-gold);
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: var(--qa-gold);
    color: white;
}

/* Flag Images */
.flag-image {
    border: 1px solid white;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background-color: var(--qa-gold);
    border-color: var(--qa-gold);
    color: white;
}

.btn-primary:hover {
    background-color: var(--qa-gray);
    border-color: var(--qa-gray);
}

.btn-outline-light:hover {
    background-color: var(--qa-gold);
    border-color: var(--qa-gold);
    color: white;
}

/* Cards */
.card {
    background-color: white;
    color: #222222;
    border: 2px solid var(--qa-gold);
}

.card-header {
    background-color: var(--qa-gold);
    color: white;
    font-weight: 600;
}

/* Event Cards */
.event-card {
    background: white;
    color: #222222;
    border: 2px solid var(--qa-gold);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 178, 139, 0.3);
}

.event-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.event-card-body {
    padding: 20px;
}

.event-date {
    color: var(--qa-gold);
    font-weight: 600;
    font-size: 14px;
}

.event-title {
    color: var(--qa-darker);
    font-size: 24px;
    margin: 10px 0;
}

.event-location {
    color: #666;
    font-size: 14px;
}

/* Attendee Avatars */
.attendee-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.attendee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--qa-gold);
    object-fit: cover;
}

.attendee-count {
    background-color: var(--qa-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid white;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Image Protection Overlay */
.image-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

/* Disable right-click on images */
img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Forms */
.form-control {
    background-color: white;
    color: #222222;
    border: 1px solid var(--qa-gray);
}

.form-control:focus {
    border-color: var(--qa-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 178, 139, 0.25);
}

.form-label {
    color: white;
    font-weight: 500;
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
}

.auth-card {
    background: white;
    color: #222222;
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--qa-gold);
}

.auth-card h1 {
    color: var(--qa-gold) !important;
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Footer */
.footer {
    background-color: var(--qa-darker);
    color: white;
    border-top: 2px solid var(--qa-gold);
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.copyright {
    font-size: 14px;
    margin: 10px 0;
}

.photographer-credit {
    font-size: 12px;
    color: var(--qa-light-gray);
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--qa-darker);
    border: 1px solid var(--qa-gold);
    padding: 20px;
    border-radius: 8px;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--qa-gold);
    color: white;
}

/* Tables */
.table {
    background-color: white;
    color: #222222;
}

.table thead {
    background-color: var(--qa-gold);
    color: white;
}

.table-dark {
    background-color: var(--qa-darker);
    color: white;
}

/* Badges */
.badge {
    font-weight: 500;
}

.badge-founder {
    background-color: #d4af37;
}

.badge-member {
    background-color: var(--qa-gold);
}

/* Responsive */
@media (max-width: 768px) {
    #content {
        padding: 15px 0;
    }
    
    .event-card img {
        height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .auth-card {
        padding: 20px;
    }
}

/* Utility Classes */
.text-gold {
    color: var(--qa-gold);
}

.bg-dark-custom {
    background-color: var(--qa-darker);
}

.border-gold {
    border-color: var(--qa-gold) !important;
}
