/* Liberty Evangelistic Chapel - Custom Styles */

/* ============================================
   Color Variables
============================================ */
:root {
    --color-gold: #FFD700;
    --color-maroon: #8B0000;
    --color-royal-blue: #00008B;
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA;
    --color-dark: #212529;
    --color-text: #333333;
}

/* ============================================
   Global Styles
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Custom Color Classes
============================================ */
.text-gold { color: var(--color-gold) !important; }
.text-maroon { color: var(--color-maroon) !important; }
.text-royal-blue { color: var(--color-royal-blue) !important; }
.text-light-gray { color: #CCC !important; }

.bg-gold { background-color: var(--color-gold) !important; }
.bg-maroon { background-color: var(--color-maroon) !important; }
.bg-royal-blue { background-color: var(--color-royal-blue) !important; }

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #FFC107;
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-maroon {
    background-color: var(--color-maroon);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-maroon:hover {
    background-color: #a00000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

.btn-royal-blue {
    background-color: var(--color-royal-blue);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-royal-blue:hover {
    background-color: #0000CD;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 139, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

.btn-outline-royal-blue {
    border: 2px solid var(--color-royal-blue);
    color: var(--color-royal-blue);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-royal-blue:hover {
    background-color: var(--color-royal-blue);
    color: white;
}

.border-gold { border-color: var(--color-gold) !important; }
.border-maroon { border-color: var(--color-maroon) !important; }
.border-royal-blue { border-color: var(--color-royal-blue) !important; }

/* ============================================
   Top Bar
============================================ */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    transition: all 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* ============================================
   Navigation
============================================ */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
}

.nav-link {
    font-weight: 500;
    color: var(--color-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-royal-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--color-light-gray);
    color: var(--color-royal-blue);
    padding-left: 2rem;
}

/* ============================================
   Hero Slider
============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.min-vh-75 {
    min-height: 75vh;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    padding: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

/* ============================================
   Page Header
============================================ */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-gold);
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ============================================
   Cards
============================================ */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.event-card .card-img-top,
.sermon-card .card-img-top {
    height: 200px;
}

.event-date {
    font-weight: 600;
    color: var(--color-royal-blue);
}

.sermon-meta .badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
}

/* ============================================
   Footer
============================================ */
footer {
    background-color: #1a1a1a;
}

.footer-link {
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--color-gold) !important;
    padding-left: 5px;
}

.newsletter-form input {
    border-radius: 25px 0 0 25px;
    border: none;
    padding: 12px 20px;
}

.newsletter-form button {
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
}

/* ============================================
   Back to Top Button
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.show {
    display: block;
}

/* ============================================
   Icon Box
============================================ */
.icon-box {
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   Search Form
============================================ */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    border-radius: 50px 0 0 50px;
    padding: 15px 25px;
    border: 2px solid var(--color-royal-blue);
}

.search-form button {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
}

/* ============================================
   Donation Form
============================================ */
.donation-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.donation-option {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-option:hover,
.donation-option.active {
    border-color: var(--color-gold);
    background-color: var(--color-light-gray);
}

/* ============================================
   Media Gallery
============================================ */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 139, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   Video Player
============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Animations
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 992px) {
    .hero-slide {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .top-bar .col-md-6:last-child {
        text-align: center !important;
        margin-top: 10px;
    }
    
    .hero-slide {
        min-height: 50vh;
        padding: 40px 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Admin Panel Styles
============================================ */
.admin-sidebar {
    background-color: var(--color-royal-blue);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--color-gold);
    color: var(--color-dark) !important;
}

.admin-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 30px;
}

.stat-card {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Utility Classes
============================================ */
.shadow-lg-hover {
    transition: all 0.3s ease;
}

.shadow-lg-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.text-justify {
    text-align: justify;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--color-light-gray);
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

