/* assets/css/style.css */
:root {
    --primary: #4a6bff;
    --secondary: #ff6b8b;
    --accent: #6cffb3;
    --dark: #2d3748;
    --light: #f8f9fa;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover, nav a.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

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

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 0.5rem 1rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 150px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: #ff4d7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.3);
}

.btn-outline {
    background-color: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    border: 2px solid white;
}

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #e53e3e;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Homepage Features */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
}

/* Service Times */
.service-times {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.service-times h2 {
    margin-bottom: 2rem;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.time-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.time-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Recent Sermon */
.recent-sermon {
    background: var(--light);
    padding: 4rem 0;
}

.sermon-highlight {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.sermon-highlight h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.sermon-highlight h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.sermon-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Email Subscription */
.email-subscription {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.subscription-content {
    max-width: 600px;
    margin: 0 auto;
}

.subscription-form {
    display: flex;
    margin-top: 2rem;
}

.subscription-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.subscription-form button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.subscription-form button:hover {
    background: #ff4d7a;
}

/* Events Section */
.featured-events {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-image {
    height: 180px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    display: inline-block;
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.event-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.past-event {
    opacity: 0.8;
}

.past-event:hover {
    opacity: 1;
}

.no-events, .no-sermons {
    text-align: center;
    grid-column: 1 / -1;
    padding: 3rem;
    color: var(--gray);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-header {
    padding: 1.5rem;
    background: var(--secondary);
    color: white;
}

.course-body {
    padding: 1.5rem;
}

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Ministries Section */
.ministries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.ministry-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ministry-header {
    padding: 1.5rem;
    background: var(--primary);
    color: white;
}

.ministry-body {
    padding: 1.5rem;
}

.ministry-body ul {
    list-style: none;
    margin-top: 1rem;
}

.ministry-body li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.ministry-body li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

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

.sermon-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sermon-image {
    height: 180px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.sermon-content {
    padding: 1.5rem;
}

.sermon-date {
    display: inline-block;
    background-color: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sermon-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.sermon-speaker {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sermon-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

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

.sermon-actions .btn {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-detail i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
    width: 30px;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fff4;
    color: var(--success);
    border: 1px solid #c6f6d5;
}

.alert-error {
    background: #fff5f5;
    color: var(--error);
    border: 1px solid #fed7d7;
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem 0;
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.dashboard-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--primary);
    color: white;
}

.main-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), #6c5ce7);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    background-color: var(--light);
    font-weight: 600;
}

/* Status and Role Badges */
.status-badge, .role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active, .role-admin {
    background: #c6f6d5;
    color: #22543d;
}

.status-inactive, .role-moderator {
    background: #fed7d7;
    color: #742a2a;
}

.status-pending, .role-member {
    background: #feebcb;
    color: #744210;
}

.status-unread {
    background: #bee3f8;
    color: #1a365d;
}

.status-read {
    background: #c6f6d5;
    color: #22543d;
}

/* Login Form */
.login-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.role-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.role-option.selected {
    border-color: var(--primary);
    background-color: rgba(74, 107, 255, 0.1);
}

.role-option i {
    margin-bottom: 0.5rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

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

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

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .subscription-form {
        flex-direction: column;
    }
    
    .subscription-form input {
        border-radius: 30px;
        margin-bottom: 1rem;
    }
    
    .subscription-form button {
        border-radius: 30px;
        padding: 0.8rem;
    }
    
    .sermon-actions, .sermon-actions {
        flex-direction: column;
    }
    
    .events-grid, .sermons-grid, .courses-grid, .ministries-grid {
        grid-template-columns: 1fr;
    }
    
    .home-features {
        grid-template-columns: 1fr;
    }
    
    .times-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .role-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}