/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Theme Variables */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1a365d;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --accent-color: #3182ce;
    --accent-hover: #2c5aa0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dark-theme {
    /* Dark Theme */
    --bg-primary: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --bg-secondary: #2d3748;
    --bg-card: rgba(45, 55, 72, 0.8);
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --accent-color: #63b3ed;
    --accent-hover: #4299e1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 0;
}

.header-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

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

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.status-indicator.connected {
    background: #10b981;
}

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

/* Tab Navigation */
.tab-navigation {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    position: sticky;
    top: 82px;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 80px;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--accent-color);
    background: rgba(99, 179, 237, 0.1);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: rgba(99, 179, 237, 0.1);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Radio Player Styles */
.radio-player {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

/* Vinyl Record */
.vinyl-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 50%;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 
        0 0 0 2px #333,
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.vinyl-record.spinning {
    animation: spin 3s linear infinite;
}

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

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.groove {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.groove:nth-child(1) { width: 90%; height: 90%; }
.groove:nth-child(2) { width: 75%; height: 75%; }
.groove:nth-child(3) { width: 60%; height: 60%; }
.groove:nth-child(4) { width: 45%; height: 45%; }

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.vinyl-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Tonearm */
.tonearm {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, #8b7355, #6b5b47);
    border-radius: 2px;
    transform-origin: top center;
    transition: transform 0.5s ease;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
}

.tonearm::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 12px;
    height: 12px;
    background: #4a4a4a;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tonearm::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -2px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tonearm.playing {
    transform: rotate(25deg);
}

/* Song Info */
.song-info {
    margin-bottom: 2rem;
}

.song-info h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.song-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.play-pause-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

/* Daily Verse */
.daily-verse {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.daily-verse h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.daily-verse blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.daily-verse cite {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Church Info Styles */
.church-info {
    max-width: 800px;
    margin: 0 auto;
}

.church-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.church-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.church-title h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.church-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.church-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.church-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.church-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.church-section p {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.pastor-section .pastor-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pastor-details h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Locations Styles */
.locations-container h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.location-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.location-card h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.location-details .address {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.maps-link:hover {
    background: var(--accent-color);
    color: white;
}

.schedule h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.schedule p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* Contact Styles */
.contact-container h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.contact-section {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-methods, .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item, .social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover, .social-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-icon, .social-icon {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.contact-text, .social-text {
    font-weight: 500;
}

/* Share Section */
.share-section {
    text-align: center;
}

.share-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.share-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1.2rem;
}

/* Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 90vw;
    width: 400px;
}

.install-content p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.install-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.install-btn, .dismiss-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.install-btn {
    background: var(--accent-color);
    color: white;
}

.install-btn:hover {
    background: var(--accent-hover);
}

.dismiss-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.dismiss-btn:hover {
    background: var(--border-color);
}

/* Footer */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .tab-navigation {
        top: 120px;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }
    
    .tab-text {
        font-size: 0.7rem;
    }
    
    .vinyl-container {
        width: 200px;
        height: 200px;
    }
    
    .church-header {
        flex-direction: column;
        text-align: center;
    }
    
    .church-logo {
        width: 80px;
        height: 80px;
    }
    
    .contact-grid, .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .player-controls {
        gap: 1rem;
    }
    
    .volume-slider {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .radio-player, .church-section, .location-card, .contact-section, .daily-verse {
        padding: 1.5rem;
    }
    
    .vinyl-container {
        width: 180px;
        height: 180px;
    }
    
    .song-info h2 {
        font-size: 1.3rem;
    }
    
    .church-title h2 {
        font-size: 1.5rem;
    }
    
    .install-prompt {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
    }
}

