/* ========================================
   HUDUMA YA SOMA NENO LA MUNGU
   Professional Radio Website Stylesheet
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Professional Green Theme */
    --primary-green: #1b5e20;
    --primary-green-light: #2e7d32;
    --primary-green-dark: #0d3d0f;
    --accent-green: #43a047;
    --accent-gold: #d4af37;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.08);
    --shadow-md: 0 4px 16px rgba(27, 94, 32, 0.12);
    --shadow-lg: 0 8px 32px rgba(27, 94, 32, 0.16);
    --shadow-xl: 0 12px 48px rgba(27, 94, 32, 0.24);
    
    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Crimson Pro', serif;
    
    /* Spacing - Compact for mobile */
    --spacing-xs: 0.375rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SVG ICONS FIX ===== */
svg {
    display: block;
    flex-shrink: 0;
}

svg:not([width]):not([height]) {
    width: 24px;
    height: 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.logo-text {
    min-width: 0;
    flex: 1;
}

.logo-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-green);
    margin: 0;
    letter-spacing: -0.02em;
}

.site-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: 500;
    margin-top: 2px;
}

.header-contact {
    display: flex;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-medium);
}

.contact-item .icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    stroke-width: 2;
    color: var(--primary-green);
    flex-shrink: 0;
}

/* ===== RADIO SECTION ===== */
.radio-section {
    background: var(--bg-white);
    padding: var(--spacing-sm) 0;
}

.radio-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ===== RADIO PLAYER BLOCK ===== */
.radio-player-block {
    background: white;
    border-radius: 0;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-green);
    border-left: 0;
    border-right: 0;
    position: relative;
    overflow: hidden;
}

.radio-player-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-green) 50%, var(--accent-gold) 100%);
}

.radio-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--bg-light);
}

.radio-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.radio-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-sm);
    color: white;
    stroke-width: 2;
    animation: radioWaves 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes radioWaves {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.radio-info h2 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin: 0;
    font-weight: 700;
}

.now-playing {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: var(--font-display);
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator {
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.frequency-badge {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.radio-player-container {
    background: var(--bg-lighter);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SCRIPTURE SECTION ===== */
.scripture-section {
    padding: var(--spacing-lg) 0;
}

.scripture-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

.scripture-text {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
}

.scripture-ref {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    font-style: normal;
    opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: var(--spacing-lg) 0;
}

/* About Section */
.about-section {
    margin-bottom: var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.title-decoration {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-gold) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.lead-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.about-content p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services-section {
    margin-bottom: var(--spacing-lg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
}

.service-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--accent-green) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-highlight {
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.03) 0%, rgba(67, 160, 71, 0.05) 100%);
    border: 1px solid var(--primary-green);
}

.service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: white;
    flex-shrink: 0;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.service-title {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: var(--spacing-sm);
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.service-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-green);
    padding: 4px var(--spacing-sm);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
    margin-bottom: var(--spacing-lg);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: white;
    color: var(--primary-green);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--accent-green);
}

.button-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    stroke-width: 3;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary-green-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

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

.footer-links li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    stroke-width: 2;
    opacity: 0.8;
    flex-shrink: 0;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop - Wrap radio player nicely */
@media (min-width: 769px) {
    .radio-wrapper {
        max-width: 800px;
        padding: 0 var(--spacing-md);
    }
    
    .radio-player-block {
        border-radius: var(--radius-md);
        border-left: 2px solid var(--primary-green);
        border-right: 2px solid var(--primary-green);
    }
    
    .radio-section {
        padding: var(--spacing-lg) 0;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .header-contact {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
    }
    
    .radio-info {
        flex-direction: row;
    }
    
    .scripture-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links li {
        justify-content: center;
    }
}

/* Mobile - Optimized for older phones */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .site-header {
        padding: var(--spacing-xs) 0;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .radio-player-block {
        padding: var(--spacing-sm);
    }
    
    .radio-icon {
        width: 36px;
        height: 36px;
    }
    
    .radio-info h2 {
        font-size: 1rem;
    }
    
    .scripture-text {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .service-icon {
        width: 52px;
        height: 52px;
    }
    
    .cta-card {
        padding: var(--spacing-md);
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .hero-background,
    .cta-card::before {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .radio-player-block,
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}