/* styles.css - River of God Church Common Styles */

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -1px;
    color: #083d61;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #222;
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #083d61;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #222;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    z-index: 1002;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    color: #222;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #083d61;
}

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

.mobile-logo span {
    font-size: 1.5rem;
    font-weight: 500;
    color: #083d61;
}

.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003;
}

.mobile-close-btn span {
    display: block;
    font-size: 3rem;
    line-height: 1;
    color: #222;
    font-weight: 300;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: calc(100vh - 80px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero .tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
    font-style: italic;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    min-width: 180px;
}

.btn-primary {
    background: white;
    color: #083d61;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #083d61;
}

/* ============================================
   INFO CARDS
   ============================================ */
.quick-info {
    padding: 4rem 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107,182,255,0.1), rgba(8,61,97,0.05));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(8,61,97,0.15);
}

.info-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #083d61, #6bb6ff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(107,182,255,0.3);
}

.info-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #083d61;
}

.info-card p {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.info-card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #083d61;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.info-card a:hover {
    border-color: #083d61;
    color: #062a45;
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.mission h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-content {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   WEEKLY SCRIPTURE SECTION
   ============================================ */
.weekly-scripture {
    background: linear-gradient(135deg, #f0f4f8 0%, #e1e9f0 100%);
    padding: 5rem 2rem;
}

.weekly-scripture-content {
    max-width: 1200px;
    margin: 0 auto;
}

.weekly-scripture h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    color: #083d61;
    font-weight: 700;
}

.weekly-scripture-subtitle {
    text-align: center;
    color: #555;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-style: italic;
}

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

.day-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.day-card.today {
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
    color: white;
    transform: scale(1.05);
}

.day-card.today .day-name,
.day-card.today strong {
    color: white;
}

.day-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #083d61;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-card p {
    line-height: 1.8;
    color: #333;
}

.day-card.today p {
    color: white;
    opacity: 0.95;
}

/* ============================================
   MINISTRIES SECTION
   ============================================ */
.ministries {
    background: #222;
    color: white;
    padding: 5rem 2rem;
}

.ministries-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ministries h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.ministries-link {
    text-align: center;
    margin-bottom: 3rem;
}

.ministries-link a {
    color: #6bb6ff;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    border: 2px solid #6bb6ff;
    border-radius: 30px;
}

.ministries-link a:hover {
    background: #6bb6ff;
    color: #222;
    transform: translateY(-2px);
}

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

.ministry-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.ministry-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.ministry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #6bb6ff;
}

.ministry-card p {
    line-height: 1.8;
    opacity: 0.9;
}

/* ============================================
   STUDY SECTION
   ============================================ */
.study {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.study-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.study h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #222;
}

.study-image {
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.study-list {
    list-style: none;
    margin-top: 2rem;
}

.study-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.study-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #083d61;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   PEOPLE SECTION
   ============================================ */
.people {
    background: #f8f9fa;
    padding: 5rem 2rem;
}

.people-content {
    max-width: 1000px;
    margin: 0 auto;
}

.people h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 600;
    color: #222;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

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

.person-card:hover {
    transform: translateY(-5px);
}

.person-image {
    width: clamp(120px, 15vw, 180px);
    height: clamp(120px, 15vw, 180px);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #083d61 0%, #6bb6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.2);
    position: relative;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #111;
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #6bb6ff;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #6bb6ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.7;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    header nav .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav .nav-links {
        display: block !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-nav .nav-links li + li a {
        border-top: 1px solid #eee;
    }
    
    .hero {
        padding-top: 2rem;
        height: auto;
        min-height: 100vh;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-logo {
        width: 100px;
        margin-bottom: 1.5rem;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
    }
    
    .day-card.today {
        transform: scale(1);
    }
    
    .study-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .study-image {
        height: 250px;
        order: -1;
    }
    
    .study-list {
        text-align: left;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .mission h2 {
        line-height: 1.2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        margin-top: 1.5rem;
    }
    
    .social-links a {
        margin: 0 0.75rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .person-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .ministry-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .people-grid {
        gap: 1.5rem;
    }
    
    .person-card {
        padding: 1rem;
    }
}

/* ============================================
   WEEKLY SCRIPTURE — FIXES
   ============================================ */
#featuredHero.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 8rem !important;
    min-height: 70vh;
    height: auto !important;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

/* Space between title → scripture → date */
#heroTitle {
    margin-bottom: 1rem;      /* title → scripture */
}

#heroScripture {
    margin-bottom: 1.5rem;    /* scripture → date */
}

#heroDate {
    margin-bottom: 3rem;      /* date → bottom area */
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   FORM ELEMENTS (GLOBAL, Matches Site Theme)
   ============================================ */

form {
    width: 100%;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #083d61;
    font-size: 1.05rem;
}

input[type="text"],
input[type="date"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid #cfd7df;
    background: #f8fafc;
    transition: all 0.25s ease;
    width: 100%;
    color: #222;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #6bb6ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(107,182,255,0.25);
}

/* Buttons inside forms */
form .btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

form .btn {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
}

/* Editor cards (shared with admin/editor pages) */
.editor-card {
    background: white;
    padding: 2.25rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    margin-bottom: 2.5rem;
    transition: 0.3s ease;
}

.editor-card h2,
.editor-card h3 {
    margin-bottom: 1.25rem;
    color: #083d61;
}

.editor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* Scripture list items */
.scripture-item {
    background: #f8f9fb;
    border: 1px solid #dce4ec;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.scripture-reference {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #083d61;
}

.scripture-text {
    color: #444;
    margin-bottom: 0.4rem;
}

.scripture-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

.btn-delete {
    background: #c62828;
    border: none;
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-delete:hover {
    background: #a81f1f;
}
