/**
 * Main Stylesheet - Family Media Manager Standalone
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header — uses theme CSS vars */
.site-header {
    background: var(--fmm-header-gradient, linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%));
    color: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 28px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-menu a {
    color: var(--fmm-header-text, #ffffff);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

section {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
}

h2 {
    color: var(--fmm-primary, #FF6B6B);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px;
}

.btn-primary {
    background: var(--fmm-btn-bg, var(--fmm-primary, #FF6B6B));
    color: var(--fmm-btn-text, #ffffff);
}

.btn-primary:hover {
    background: rgba(31, 108, 165, 1);
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

/* Footer — see theme block below */

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================= */
/* FIXES ADDED 2026-02-15 */
/* ========================================= */

/* Fix 1: Make Admin Dropdown Scrollable */
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Fix 2: Bigger Scroll Indicator Dots */
.carousel-indicators button,
.carousel-indicators li,
.scroll-indicator,
.hero-dots button,
.hero-dots li {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active,
.carousel-indicators li.active,
.scroll-indicator.active,
.hero-dots button.active,
.hero-dots li.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* Make indicators more visible */
.carousel-indicators,
.hero-dots {
    bottom: 20px;
    z-index: 10;
}

/* End of fixes 2026-02-15 */


/* ========================================= */
/* DROPDOWN FIX - CORRECTED 2026-02-15 */
/* ========================================= */

/* Fix the admin dropdown menu scrolling */
ul.dropdown-menu {
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
}

/* Alternative - target by position */
.nav-menu .dropdown-menu {
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Make scrollbar visible and styled */
ul.dropdown-menu::-webkit-scrollbar,
.nav-menu .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

ul.dropdown-menu::-webkit-scrollbar-track,
.nav-menu .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

ul.dropdown-menu::-webkit-scrollbar-thumb,
.nav-menu .dropdown-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

ul.dropdown-menu::-webkit-scrollbar-thumb:hover,
.nav-menu .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* End of corrected dropdown fix */


/* ── Site Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--fmm-header-gradient, linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%));
    color: var(--fmm-header-text, #fff);
    padding: 24px 0 16px;
    margin-top: 40px;
    font-size: 0.88rem;
    font-family: 'Nunito', sans-serif;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-social-link {
    color: rgba(255,255,255,0.9);
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.footer-social-link:hover {
    opacity: 0.75;
    transform: scale(1.15);
}
.footer-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.15s;
}
.footer-nav a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.footer-copy {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    text-align: center;
}
