/*
 * ECM Church Management System Styles
 * Enlightened Christ Ministries
 * Brand Colors:
 * - Deep Purple: #87306B (Main branding)
 * - Medium Purple: #94467A (Secondary text)
 * - Soft Purple: #A66691 (Accents)
 * - Light Purple: #C79EB8 (Backgrounds)
 * - Rich Gold: #D2AF5F (Light rays)
 * - Bright Gold: #DFC679 (Highlights)
 * - Pale Gold: #EFE19A (Soft light)
 * - White: #FFFFFF (Clean space)
 */

:root {
    --deep-purple: #87306B;
    --medium-purple: #94467A;
    --soft-purple: #A66691;
    --light-purple: #C79EB8;
    --rich-gold: #D2AF5F;
    --bright-gold: #DFC679;
    --pale-gold: #EFE19A;
    --white: #FFFFFF;
    --dark-text: #2D2D2D;
    --light-text: #666666;
    --gradient-primary: linear-gradient(135deg, #87306B 0%, #94467A 50%, #A66691 100%);
    --gradient-gold: linear-gradient(135deg, #D2AF5F 0%, #DFC679 50%, #EFE19A 100%);
    --shadow-sm: 0 2px 4px rgba(135, 48, 107, 0.1);
    --shadow-md: 0 4px 12px rgba(135, 48, 107, 0.15);
    --shadow-lg: 0 8px 24px rgba(135, 48, 107, 0.2);
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #f8f5f7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    color: var(--deep-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rich-gold);
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    height: 60px;
    width: auto;
}

.navbar-title {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-title span {
    color: var(--bright-gold);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.navbar-nav a {
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pale-gold);
}

.navbar-cta {
    background: var(--rich-gold);
    color: var(--deep-purple) !important;
    font-weight: 600;
}

.navbar-cta:hover {
    background: var(--bright-gold) !important;
}

/* Navigation Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-dropdown > a i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover > a i {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--dark-text);
    font-size: 0.9rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: var(--light-purple);
    color: var(--deep-purple);
    padding-left: 1.5rem;
}

.nav-dropdown .dropdown-menu li a i {
    width: 20px;
    color: var(--medium-purple);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/WhatsApp Image 2025-11-27 at 19.07.29_fadc802d.jpg') center/cover;
    opacity: 0.15;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--bright-gold);
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--rich-gold);
    color: var(--deep-purple);
}

.btn-primary:hover {
    background: var(--bright-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--deep-purple);
}

.btn-outline {
    background: transparent;
    color: var(--deep-purple);
    border: 2px solid var(--deep-purple);
}

.btn-outline:hover {
    background: var(--deep-purple);
    color: var(--white);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--deep-purple);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--white);
}

.section-purple {
    background: linear-gradient(180deg, #f8f5f7 0%, #f0e8ed 100%);
}

.section-dark {
    background: var(--gradient-primary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.gold-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--soft-purple);
    margin-bottom: 1rem;
}

.card-meta i {
    color: var(--rich-gold);
}

.card-text {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Event Cards */
.event-card {
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--deep-purple);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    z-index: 1;
}

.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.event-date-badge .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-type {
    display: inline-block;
    background: var(--pale-gold);
    color: var(--deep-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Service Times */
.service-times {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0e8ed;
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.service-info h4 {
    margin-bottom: 0.25rem;
}

.service-info p {
    margin: 0;
    font-size: 0.95rem;
}

.service-time {
    margin-left: auto;
    background: var(--pale-gold);
    color: var(--deep-purple);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Calendar */
.calendar-container {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.fc {
    font-family: inherit;
}

.fc .fc-toolbar-title {
    color: var(--deep-purple);
    font-size: 1.5rem;
}

.fc .fc-button-primary {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
}

.fc .fc-button-primary:hover {
    background: var(--medium-purple);
    border-color: var(--medium-purple);
}

.fc .fc-button-primary:disabled {
    background: var(--light-purple);
    border-color: var(--light-purple);
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--pale-gold);
}

.fc .fc-event {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
    border-radius: 4px;
    padding: 2px 6px;
}

.fc .fc-event:hover {
    background: var(--medium-purple);
}

/* Sermon Cards */
.sermon-card .sermon-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--soft-purple);
    font-size: 0.875rem;
}

.sermon-card .preacher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sermon-card .preacher img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Announcements */
.announcement-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--deep-purple);
}

.announcement-item.urgent {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.announcement-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.urgent-badge {
    background: #dc3545;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--deep-purple);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand img {
    height: 60px;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.25rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--bright-gold);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bright-gold);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--bright-gold);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--rich-gold);
    color: var(--deep-purple);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* =============== ADMIN STYLES =============== */

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--gradient-primary);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.admin-logo img {
    height: 50px;
}

.admin-logo h2 {
    color: var(--white);
    font-size: 1rem;
}

.admin-nav {
    list-style: none;
}

.admin-nav-item {
    margin-bottom: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.admin-nav-link i {
    width: 20px;
    text-align: center;
}

.admin-nav-section {
    color: var(--bright-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.75rem;
    padding-left: 1rem;
}

/* Admin Mobile Menu Toggle - Hidden on desktop */
.admin-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: var(--deep-purple);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: background 0.3s ease;
}

.admin-menu-toggle:hover {
    background: var(--medium-purple);
}

/* Admin Overlay - Hidden by default */
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f8f5f7;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-title {
    font-size: 1.75rem;
    color: var(--deep-purple);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-icon.purple { background: var(--gradient-primary); }
.stat-icon.gold { background: var(--gradient-gold); color: var(--deep-purple); }
.stat-icon.green { background: linear-gradient(135deg, #28a745, #20c997); }
.stat-icon.blue { background: linear-gradient(135deg, #007bff, #17a2b8); }

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 0.875rem;
    margin: 0;
}

/* Admin Cards */
.admin-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-title {
    font-size: 1.125rem;
    margin: 0;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f0e8ed;
}

.admin-table th {
    background: #f8f5f7;
    color: var(--deep-purple);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: #faf8f9;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0d6dc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--deep-purple);
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Duty Roster Form */
.duty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.duty-item {
    background: #f8f5f7;
    border-radius: 12px;
    padding: 1.25rem;
}

.duty-item h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--medium-purple);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    padding: 2rem;
}

.login-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    height: 80px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--light-text);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--deep-purple); }

/* Calendar Share */
.calendar-share {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.calendar-share h4 {
    margin-bottom: 1rem;
}

.share-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary { background: var(--deep-purple); color: var(--white); }
.badge-gold { background: var(--pale-gold); color: var(--deep-purple); }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }

/* =============== ABOUT PAGE STYLES =============== */

/* Page Hero */
.page-hero {
    background: var(--gradient-primary);
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero h1 span {
    color: var(--bright-gold);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.about-image {
    text-align: center;
    overflow: hidden;
}

.about-image img {
    max-width: 100%;
    width: 600px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 0.5rem;
}

.about-content .gold-line {
    margin-left: auto;
    margin-right: auto;
}

.about-motto {
    background: linear-gradient(135deg, #f8f5f7 0%, #f0e8ed 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid var(--rich-gold);
}

.about-motto i {
    color: var(--rich-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.about-motto p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.about-motto span {
    color: var(--medium-purple);
    font-size: 0.9rem;
}

/* Mission & Vision Grid */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mission-icon i {
    font-size: 2rem;
    color: var(--white);
}

.mission-card h3 {
    margin-bottom: 1rem;
}

.mission-card p {
    margin-bottom: 0;
}

.scripture-highlight {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--rich-gold);
    border-right: 4px solid var(--rich-gold);
}

.scripture-highlight p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
}

.scripture-highlight span {
    color: var(--medium-purple);
    font-size: 0.9rem;
}

/* Leader Profile */
.leader-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.leader-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.leader-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.leader-title {
    display: inline-block;
    background: var(--pale-gold);
    color: var(--deep-purple);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.leader-info p {
    line-height: 1.8;
}

/* Beliefs Grid */
.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.belief-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.belief-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.belief-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0e8ed 0%, #e8dce4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.belief-icon i {
    font-size: 1.75rem;
    color: var(--deep-purple);
}

.belief-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.belief-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Scriptures Grid */
.scriptures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.scripture-card {
    text-align: center;
    padding: 1.5rem;
}

.scripture-ref {
    color: var(--bright-gold);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.scripture-card p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card h4 {
    margin-bottom: 0.75rem;
}

.contact-card p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* =============== RESPONSIVE STYLES =============== */

/* Large Screens (1200px and below) */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .container {
        padding: 0 1.5rem;
    }

    .navbar-container {
        padding: 0 1.5rem;
    }

    /* About Page */
    .beliefs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens - Tablets (992px and below) */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Admin Sidebar - Slide out on tablet */
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 4.5rem; /* Space for the hamburger menu */
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Show hamburger menu on tablet/mobile */
    .admin-menu-toggle {
        display: block;
    }

    /* Overlay for admin sidebar */
    .admin-overlay.active {
        display: block;
    }

    /* About Page - Tablet */
    .about-image img {
        max-width: 500px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .leader-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .leader-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .scriptures-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Small Screens - Mobile (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
    h4 { font-size: 1rem; }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-brand {
        gap: 0.5rem;
    }

    .navbar-logo {
        height: 45px;
    }

    .navbar-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-purple);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-nav li {
        width: 100%;
    }

    .navbar-nav a {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
    }

    .navbar-cta {
        margin-top: 0.5rem;
    }

    .menu-toggle {
        display: block;
        padding: 0.5rem;
    }

    /* Mobile Dropdowns */
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-dropdown .dropdown-menu li a {
        color: var(--white);
        text-align: center;
        padding: 0.75rem;
    }

    .nav-dropdown .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: var(--pale-gold);
        padding-left: 0.75rem;
    }

    .nav-dropdown .dropdown-menu li a i {
        color: var(--bright-gold);
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1rem;
        gap: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-text h1 span {
        display: block;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .hero-text p[style*="font-size: 1.5rem"] {
        font-size: 1.1rem !important;
    }

    .hero-image img {
        max-width: 250px;
        border-radius: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Buttons Mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Cards Mobile */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    /* Service Times Mobile */
    .service-times {
        padding: 1.5rem;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .service-time {
        margin-left: 0;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    /* Forms Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-control {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    /* Duty Grid Mobile */
    .duty-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .duty-item {
        padding: 1rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-brand img {
        height: 50px;
    }

    .footer-brand h3 {
        font-size: 1.125rem;
    }

    .footer h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    /* Admin Mobile */
    .admin-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-card-body {
        padding: 1rem;
    }

    .admin-title {
        font-size: 1.25rem;
    }

    /* Tables Mobile */
    .table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-table .actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-table .actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Calendar Mobile */
    .calendar-container {
        padding: 1rem;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.125rem;
    }

    .fc .fc-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Login Page Mobile */
    .login-page {
        padding: 1rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .login-header img {
        height: 70px;
    }

    .login-header h1 {
        font-size: 1.25rem;
    }

    /* Alerts Mobile */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    /* Event Cards Mobile */
    .event-date-badge {
        padding: 0.5rem 0.75rem;
    }

    .event-date-badge .day {
        font-size: 1.25rem;
    }

    /* Announcements Mobile */
    .announcement-item {
        padding: 1.25rem;
    }

    .announcement-title {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    /* Share Buttons Mobile */
    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Calendar Share Mobile */
    .calendar-share {
        padding: 1rem;
    }

    .share-options {
        gap: 0.75rem;
    }

    .share-options .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* About Page - Mobile */
    .page-hero {
        padding: 2.5rem 0;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .about-grid {
        gap: 1.5rem;
    }

    .about-image {
        padding: 0;
        margin: 0;
    }

    .about-image img {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .about-motto {
        padding: 1.25rem;
    }

    .about-motto p {
        font-size: 1.1rem;
    }

    .mission-card {
        padding: 1.75rem;
    }

    .mission-icon {
        width: 60px;
        height: 60px;
    }

    .mission-icon i {
        font-size: 1.5rem;
    }

    .scripture-highlight {
        padding: 1.5rem;
    }

    .scripture-highlight p {
        font-size: 1rem;
    }

    .leader-image img {
        max-width: 220px;
        height: 220px;
    }

    .leader-info h3 {
        font-size: 1.5rem;
    }

    .beliefs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .belief-card {
        padding: 1.5rem;
    }

    .belief-icon {
        width: 55px;
        height: 55px;
    }

    .belief-icon i {
        font-size: 1.4rem;
    }

    .scripture-card {
        padding: 1rem;
    }

    .scripture-ref {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.25rem;
    }
}

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .container {
        padding: 0 0.75rem;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-title {
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-image img {
        max-width: 200px;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .card-image {
        height: 160px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-info h3 {
        font-size: 1.25rem;
    }

    .footer-brand img {
        height: 45px;
    }

    .login-container {
        padding: 1.5rem 1rem;
    }

    .login-header img {
        height: 60px;
    }

    .login-header h1 {
        font-size: 1.125rem;
    }

    /* Hide less important table columns on very small screens */
    .admin-table .hide-mobile {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .card:hover {
        transform: none;
    }

    .card:hover .card-image img {
        transform: none;
    }

    .navbar-nav a:hover {
        background: transparent;
    }

    /* Increase tap targets */
    .navbar-nav a {
        padding: 1rem 1.25rem;
    }

    .admin-nav-link {
        padding: 1rem;
    }

    .footer-links a {
        display: inline-block;
        padding: 0.25rem 0;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1.5rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-image {
        order: 0;
    }

    .hero-image img {
        max-width: 200px;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-direction: row;
    }

    .hero-buttons .btn {
        width: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .admin-sidebar,
    .btn,
    .no-print {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-purple);
    border-top-color: var(--deep-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
