/* Keerthanam App Main Styles */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #C1403D;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #FFF8F3;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', 'Noto Sans Telugu', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #FF9966 0%, #FF8A80 100%);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-small {
    padding: 15px 0;
}

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

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

.logo-img {
    height: 50px;
    max-width: 200px;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-youtube {
    background-color: #FF0000;
    color: white;
}

.btn-youtube:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
}

.btn-back {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

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

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

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

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

.btn-secondary:hover {
    background-color: var(--text-dark);
}

.btn-install {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
    font-size: 14px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-install:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.install-icon {
    font-size: 18px;
}

/* Title Section */
.title-section {
    background: linear-gradient(135deg, #FF9966 0%, #FF8A80 100%);
    padding: 40px 0;
    text-align: center;
    color: white;
}

.main-title {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* Section Tabs */
.section-tabs {
    background: white;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tab-btn {
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    min-height: 44px;
}

.tab-btn:hover {
    background-color: var(--bg-light);
}

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

/* Search Section */
.search-section {
    padding: 20px 0;
    background-color: white;
    border-bottom: 2px solid var(--border-color);
}

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    min-height: 44px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    white-space: nowrap;
}

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

/* Alphabet Navigation */
.alphabet-section {
    padding: 30px 0;
    background-color: white;
    border-bottom: 2px solid var(--border-color);
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.alphabet-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.alphabet-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alphabet-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Keerthanam Section */
.keerthanam-section {
    padding: 40px 0;
    min-height: 400px;
}

.keerthanam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.keerthanam-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.keerthanam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Cards without thumbnails - adjust padding for better appearance */
.keerthanam-card.no-thumbnail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.keerthanam-card.no-thumbnail .keerthanam-content {
    padding: 24px 20px;
}

.keerthanam-thumbnail {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play icon removed - YouTube functionality disabled */

.keerthanam-content {
    padding: 20px;
}

.keerthanam-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
    line-height: 1.3;
}

.keerthanam-card-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.keerthanam-alphabet {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.keerthanam-section-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state p {
    font-size: 18px;
}

/* Keerthanam Detail Page */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.keerthanam-detail {
    max-width: 900px;
    margin: 0 auto;
}

.keerthanam-header {
    text-align: center;
    margin-bottom: 40px;
}

.keerthanam-title {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.keerthanam-title-english {
    font-size: 20px;
    color: var(--text-light);
    display: none;
}

.keerthanam-language-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Video Container */
.video-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.youtube-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Lyrics Container */
.lyrics-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.lyrics-heading {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.lyrics-image-container {
    margin-bottom: 30px;
    text-align: center;
}

.lyrics-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.lyrics-content {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
    white-space: pre-wrap;
}

.no-lyrics {
    color: var(--text-light);
    font-style: italic;
}

.keerthanam-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 80px 20px;
}

.error-state h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.error-state p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 10px;
}

.footer-content a:hover {
    text-decoration: underline;
}
