/**
 * Theme Custom CSS - Tamil2Lyrics & Padalvarigal styling
 */

/* ==========================================================================
   1. HERO SECTIONS
   ========================================================================== */
.t2l-hero {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}
.t2l-hero-blur-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(45px);
    opacity: 0.15;
    pointer-events: none;
}
.t2l-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.t2l-breadcrumbs a { color: #64748b; }
.t2l-breadcrumbs a:hover { color: var(--t2l-primary); }

.t2l-hero-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.t2l-hero-thumb {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.t2l-movie-badge {
    display: inline-block;
    background: #fdf2f4;
    color: var(--t2l-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
}
.t2l-movie-badge:hover {
    background: var(--t2l-primary);
    color: #ffffff !important;
}
.t2l-song-title {
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.t2l-song-title span {
    color: var(--t2l-primary);
}
.t2l-hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

/* ==========================================================================
   2. MAIN 2-COLUMN LAYOUT & LYRICS CARD
   ========================================================================== */
.t2l-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
.t2l-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

/* Toolbar */
.t2l-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 25px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}
.t2l-tabs {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}
.t2l-tab-btn {
    background: transparent;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}
.t2l-tab-btn.active {
    background: #ffffff;
    color: var(--t2l-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.t2l-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.t2l-font-controls {
    display: flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 30px;
}
.t2l-font-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}
.t2l-font-btn:hover {
    background: #ffffff;
    color: var(--t2l-primary);
}
.t2l-copy-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.t2l-copy-btn:hover {
    border-color: var(--t2l-primary);
    color: var(--t2l-primary);
}

/* Lyrics Body */
.t2l-lyrics-body {
    padding: 35px 30px;
    text-align: center;
    font-size: 18px;
    line-height: 2;
    color: #1e293b;
}
.t2l-lyrics-body p {
    margin-bottom: 24px;
}

/* Share Bar */
.t2l-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #f1f5f9;
}
.t2l-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: transform 0.2s;
}
.t2l-share-btn:hover { transform: translateY(-2px); }
.t2l-whatsapp { background: #25D366; }
.t2l-twitter { background: #0f172a; }
.t2l-facebook { background: #1877f2; }

/* Credits Box */
.t2l-credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.t2l-credit-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--t2l-primary);
    letter-spacing: 0.5px;
}
.t2l-credit-val {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

/* Sidebar Widgets */
.t2l-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 20px;
    margin-bottom: 24px;
}
.t2l-sidebar-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.t2l-sidebar-title svg { color: var(--t2l-primary); }
.t2l-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}
.t2l-video-wrap iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.t2l-lyricist-card {
    display: flex;
    align-items: center;
    gap: 15px;
}
.t2l-lyricist-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fdf2f4;
    color: var(--t2l-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.t2l-lyricist-info h4 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.t2l-lyricist-info span { font-size: 12px; color: #64748b; }


/* ==========================================================================
   3. 3-COLUMN SONG CARDS & MOVIE SHOWCASE (Padalvarigal Style)
   ========================================================================== */
.pv-movie-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 0 35px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.pv-poster-box { flex-shrink: 0; width: 240px; }
.pv-poster-img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    display: block;
    object-fit: cover;
}
.pv-year-badge {
    background-color: var(--t2l-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    padding: 4px 14px;
    margin-bottom: 12px;
    display: inline-block;
    text-transform: uppercase;
}
.pv-movie-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.pv-songs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 15px;
}
.pv-song-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.25s ease;
}
.pv-song-card:hover {
    box-shadow: 0 8px 20px rgba(223, 73, 113, 0.15);
    border-color: var(--t2l-primary);
    transform: translateY(-3px);
}
.pv-song-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 14px;
    flex-shrink: 0;
}
.pv-song-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.pv-song-title {
    color: #111827;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-song-meta {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pv-song-arrow {
    color: #9ca3af;
    margin-left: 10px;
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}
.pv-song-card:hover .pv-song-arrow {
    color: var(--t2l-primary);
    transform: translateX(3px);
}

/* ==========================================================================
   4. LYRICIST ARCHIVE & DIRECTORY
   ========================================================================== */
.pv-lyricist-hero { padding: 25px 0 20px 0; margin-bottom: 20px; }
.pv-lyricist-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf2f4;
    color: var(--t2l-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.pv-lyricist-title {
    font-size: 38px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px 0;
}
.pv-songs-count-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Directory Grid */
.pv-dir-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.pv-dir-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}
.pv-dir-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(223, 73, 113, 0.14);
    border-color: var(--t2l-primary);
}
.pv-dir-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: #fdf2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--t2l-primary);
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .pv-dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .t2l-main-grid { grid-template-columns: 1fr; }
    .pv-songs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .pv-dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .t2l-hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .t2l-hero-meta { justify-content: center; }
    .t2l-song-title { font-size: 28px; }
    .t2l-toolbar { flex-direction: column; gap: 15px; }
    .pv-movie-hero { flex-direction: column; text-align: center; gap: 20px; }
    .pv-poster-box { width: 180px; }
    .pv-movie-title { font-size: 26px; }
    .pv-songs-grid { grid-template-columns: 1fr; }
    .pv-dir-grid { grid-template-columns: 1fr; }
}
