/* Sure Faith - Presbyterian Youth NSW
   Custom Styles with Bootstrap 5
*/

/* Font and Base Styles */
:root {
    --sf-blue: #004aad;
    --sf-light-blue: #6da8da;
    --sf-red: #ff3131;
    --sf-green: #00bf63;
    --sf-orange: #ff914d;
    --sf-dark: #191919;
}

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Navigation */
#mainNav {
    transition: background-color 0.3s ease;
}

#mainNav .navbar-brand img {
    transition: transform 0.2s ease;
}

#mainNav .navbar-brand:hover img {
    transform: scale(1.05);
}

#mainNav .nav-link {
    color: var(--sf-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--sf-blue);
    background-color: rgba(0, 74, 173, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
}

.hero-section h1 {
    color: var(--sf-blue);
}

/* Hero Cards Grid */
.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

/* Topic Cards */
.topic-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.topic-card .card-title {
    color: var(--sf-blue);
    font-weight: 600;
}

.topic-card.topic-salvation:hover {
    border-bottom: 4px solid var(--sf-red);
}

.topic-card.topic-prayer:hover {
    border-bottom: 4px solid var(--sf-blue);
}

.topic-card.topic-perseverance:hover {
    border-bottom: 4px solid var(--sf-green);
}

.topic-card.topic-forgiveness:hover {
    border-bottom: 4px solid var(--sf-orange);
}

/* Topic Icons */
.topic-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.topic-icon-large {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Section Styling */
.topic-section {
    scroll-margin-top: 80px;
    padding-bottom: 100px;
}

.section-header {
    padding-top: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sf-blue);
}

.text-primary-blue {
    color: var(--sf-blue) !important;
}

/* Background colors for sections */
.bg-salvation {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.bg-prayer {
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.bg-perseverance {
    background: linear-gradient(180deg, #f5fff8 0%, #ffffff 100%);
}

.bg-forgiveness {
    background: linear-gradient(180deg, #fff9f5 0%, #ffffff 100%);
}

/* Content Cards */
.content-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.subsection-title {
    color: var(--sf-blue);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sf-light-blue);
}

/* Scripture Quotes */
.scripture-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--sf-blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.scripture-quote.featured {
    background: linear-gradient(135deg, #e8f4fd 0%, #d5e9f8 100%);
    border-left-width: 6px;
    font-size: 1.1rem;
}

.scripture-quote.memory-verse {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left-color: #ffc107;
}

.scripture-quote .reference {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--sf-blue);
    margin-top: 0.75rem;
    text-align: right;
}

/* Lists */
.truth-list,
.gospel-list,
.situation-list,
.action-list {
    list-style: none;
    padding-left: 0;
}

.truth-list li,
.gospel-list li,
.situation-list li,
.action-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.truth-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: var(--sf-blue);
    border-radius: 50%;
}

.gospel-list li::before {
    content: '\2794';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--sf-light-blue);
    font-size: 1.2rem;
}

.situation-list li::before {
    content: '\25cf';
    position: absolute;
    left: 0.3rem;
    top: 0;
    color: var(--sf-orange);
}

.action-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background-color: var(--sf-green);
    border-radius: 2px;
}

/* Situation Box */
.situation-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.situation-box h5 {
    color: var(--sf-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.situation-box ul {
    margin-bottom: 0;
}

.situation-box li {
    margin-bottom: 0.75rem;
}

.situation-box li:last-child {
    margin-bottom: 0;
}

/* Spotify Embed */
.spotify-embed {
    max-width: 500px;
}

/* Buttons */
.btn-outline-primary {
    color: var(--sf-blue);
    border-color: var(--sf-blue);
    font-weight: 500;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
}

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

/* Footer */
.footer {
    background-color: #ffffff !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-top: 1px solid #e9ecef;
}

/* Add padding to body to account for fixed footer */
body {
    padding-bottom: 80px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .hero-cards-grid {
        gap: 0.75rem;
        padding: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand img {
        height: 40px !important;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .scripture-quote {
        padding: 1rem;
    }

    .content-card {
        padding: 1rem;
    }

    .hero-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .hero-cards-grid .card-title {
        font-size: 0.9rem;
    }

    .hero-cards-grid .card-text {
        font-size: 0.75rem !important;
    }

    .hero-cards-grid .topic-icon img {
        height: 40px !important;
    }

    .footer {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: auto !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Accessibility - focus states */
a:focus,
button:focus {
    outline: 2px solid var(--sf-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .spotify-embed {
        display: none !important;
    }

    .topic-section {
        page-break-before: always;
    }

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