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

:root {
    --bg-dark: #050505;
    --glass: rgba(18, 18, 18, 0.95);
    --wyd-gold: #d4af37;
    --wyd-gold-gradient: linear-gradient(135deg, #b8860b, #f7ef8a, #d4af37);
    --wyd-red: #a81d2a;
    --text-white: #ffffff;
    --text-muted: #888888;
    --sidebar-width: 260px;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% -10%, #1a0505 0%, #000000 60%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* NAVBAR (For public pages) */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 80px; box-sizing: border-box;
    z-index: 1000;
}
.brand-wrapper { display: flex; align-items: center; gap: 15px; }
.brand-logo { height: 50px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.2rem; letter-spacing: 2px; color: white; }

.nav-links a {
    color: var(--text-muted); text-decoration: none; margin-left: 30px;
    text-transform: uppercase; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--wyd-gold); }

/* --- ADMIN DASHBOARD LAYOUT (WORDPRESS STYLE) --- */
.admin-body { padding: 0; display: flex; height: 100vh; overflow: hidden; }

.admin-sidebar {
    width: var(--sidebar-width);
    background: #0a0a0a;
    border-right: 1px solid #222;
    display: flex; flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-brand {
    padding: 0 20px 30px 20px;
    border-bottom: 1px solid #222;
    margin-bottom: 20px;
}

.sidebar-menu button {
    background: transparent; border: none; width: 100%; text-align: left;
    padding: 15px 25px; color: #888; cursor: pointer;
    font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.2s; border-left: 3px solid transparent;
}
.sidebar-menu button:hover, .sidebar-menu button.active {
    background: #111; color: var(--wyd-gold); border-left-color: var(--wyd-gold);
}

.admin-content {
    flex: 1; padding: 40px; overflow-y: auto; background: #050505;
}

/* --- CARDS & GRID --- */
.container { max-width: 1400px; margin: 0 auto; padding: 100px 30px 30px 30px; }
.grid-display { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* FIX FOR IMAGE DISPLAY */
.card img {
    width: 100%;
    height: 350px; /* Taller height for big portraits */
    object-fit: contain; /* CRITICAL: This ensures the WHOLE image shows, no cropping */
    background: radial-gradient(circle, #1a1a1a 0%, #000 100%); /* Cool background for transparent PNGs */
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

/* The fix: No border-radius 50%, full width */
.card img {
    width: 100%;
    height: 300px; /* Fixed height for uniformity */
    object-fit: contain; /* Shows full image without cropping */
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.card h2 { margin: 10px 0 5px 0; color: white; font-family: 'Playfair Display'; }
.card .cat { color: var(--wyd-gold); font-size: 0.8rem; text-transform: uppercase; }

/* ANNOUNCEMENTS */
.announcement-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--wyd-gold);
    padding: 20px; text-align: center; margin-bottom: 40px;
    border-radius: 8px;
}

/* INPUTS */
input, select, textarea {
    background: #111; border: 1px solid #333; color: white; padding: 12px;
    width: 100%; box-sizing: border-box; font-family: 'Montserrat'; margin-bottom: 10px;
}
textarea { height: 100px; resize: vertical; }

.btn { padding: 10px 20px; cursor: pointer; font-weight: bold; border: none; text-transform: uppercase; }
.btn-gold { background: var(--wyd-gold-gradient); color: black; }
.btn-red { background: var(--wyd-red); color: white; }

/* SPINNER */
#loadingOverlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000; 
    align-items: center; justify-content: center; flex-direction: column;
}
.spinner {
    width: 50px; height: 50px; border: 5px solid #333; border-top: 5px solid var(--wyd-gold);
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
