/* ============================================
   TvArad.ro - Custom Styles (Bootstrap 5 Override)
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
    --color-primary: #1a1464;
    --color-primary-dark: #110e42;
    --color-primary-light: #2a2080;
    --color-accent: #f29a0c;
    --color-accent-hover: #e08a00;
    --color-accent-light: #f5be00;
    --color-red: #d0272a;
    --color-orange: #e37123;
    --color-overlay: rgba(26, 20, 100, 0.85);
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Base Overrides ---- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

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

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar-tvarad {
    background-color: var(--color-primary) !important;
    padding: 0 0;
    min-height: 70px;
}

.navbar-tvarad .navbar-brand img {
    height: 75px;
    width: auto;
    margin-top: 10px;
}

.navbar-tvarad .nav-link {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    letter-spacing: 0.3px;
}

.navbar-tvarad .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-tvarad .nav-link:hover::after,
.navbar-tvarad .nav-link.active::after {
    width: 60%;
}

.navbar-tvarad .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-tvarad .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-right-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-live-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.btn-live-radio:hover {
    color: var(--color-accent);
}

.btn-live-radio svg {
    width: 18px;
    height: auto;
}

.btn-live-tv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-accent) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.9rem;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-live-tv:hover {
    background-color: var(--color-accent-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-live-tv svg {
    width: 22px;
    height: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-primary-dark);
    color: #fff;
    padding: 30px 0 20px;
}

.footer-weather {
    font-size: 0.95rem;
}

.footer-weather .weather-icon {
    font-size: 1.3rem;
}

.footer-logo img {
    height: 55px;
    width: auto;
}

.footer-social a {
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-accent);
}

.footer-social svg {
    width: 27px;
    height: 27px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

.footer-bottom a {
    color: var(--color-accent);
}

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

/* ============================================
   HERO SECTION (Homepage)
   ============================================ */
.hero-section {
    padding: 30px 0 10px;
}

.hero-main-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-main-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.35;
}

.hero-main-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.hero-sidebar-item {
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e0e0;
}

.hero-sidebar-item:last-child {
    border-bottom: none;
}

.hero-sidebar-item h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
}

.hero-sidebar-item p {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

/* ============================================
   NEWS BADGES
   ============================================ */
.news-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.news-badge--live {
    background-color: var(--color-red);
    color: #fff;
}

.news-badge--video {
    background-color: var(--color-accent);
    color: #fff;
}

.news-badge--analiza {
    background-color: var(--color-accent);
    color: #fff;
}

/* ============================================
   NEWS CARDS
   ============================================ */
.section-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title-line h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    white-space: nowrap;
}

.section-title-line::before {
    content: '';
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    flex-shrink: 0;
}

.section-title-line::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background-color: var(--color-primary);
}

.news-card {
    display: flex;
    transition: all 0.3s ease;
    cursor: pointer;
    color: inherit;
}

.news-card:hover {
    transform: translateX(3px);
    color: inherit;
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.news-card-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-category::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-time {
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
}

/* Read more link */
.read-more-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: underline;
    padding: 20px 0;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.read-more-link:hover {
    color: var(--color-accent);
}

/* ============================================
   SIDEBAR ADS
   ============================================ */
.sidebar-ad {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   EMISIUNI SECTION (Homepage)
   ============================================ */
.emisiune-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

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

.emisiune-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ============================================
   PARTENERI SECTION
   ============================================ */
.parteneri-section {
    border-top: 1px solid #e0e0e0;
}

.parteneri-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.parteneri-grid img {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.parteneri-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    font-style: italic;
}

/* Category filters */
.category-filters a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a2e;
    padding: 5px 0;
}

.category-filters a.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.category-filters a:hover {
    color: var(--color-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border: none;
    color: #1a1a2e;
    font-weight: 500;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    font-size: 0.9rem;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    color: #888;
}

.pagination .dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #888;
}

/* ============================================
   ARTICLE PAGE (Stire detail)
   ============================================ */
.article-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.3;
}

.article-date {
    font-size: 0.8rem;
    color: #888;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #1a1a2e;
    color: #1a1a2e;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: none;
}

.share-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.article-featured-image {
    width: 100%;
    border-radius: 8px;
}

.article-image-caption {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

.article-content {
    font-size: 0.92rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 18px;
}

.article-tag {
    font-size: 0.78rem;
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-tag:hover {
    color: var(--color-accent);
}

.article-tags-label {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Related articles */
.related-article-card {
    transition: all 0.3s ease;
    cursor: pointer;
    color: inherit;
    display: flex;
}

.related-article-card:hover {
    transform: translateX(3px);
    color: inherit;
}

.related-article-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

/* ============================================
   LIVE TV / LIVE RADIO PAGES
   ============================================ */
.live-page {
    min-height: calc(100vh - 70px);
    background-image: url('../assets/images/arad-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.live-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 20, 100, 0.90) 0%, rgba(17, 14, 66, 0.95) 100%);
    z-index: 1;
}

.live-page > * {
    position: relative;
    z-index: 2;
}

.live-title h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}

.live-title svg {
    height: 50px;
    width: auto;
}

.live-player-frame {
    width: 100%;
    max-width: 750px;
    background: rgba(30, 24, 117, 0.5);
    border: 3px solid rgba(100, 90, 200, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.live-player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.live-player-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-player-radio {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--color-accent);
    overflow: hidden;
}

.live-player-radio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-player-controls {
    background: linear-gradient(135deg, rgba(80, 50, 30, 0.6), rgba(60, 40, 20, 0.4));
    padding: 20px;
}

.player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.player-btn:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.1);
}

/* ============================================
   DESPRE NOI PAGE
   ============================================ */
.despre-page {
    min-height: calc(100vh - 70px);
    background-image: url('../assets/images/arad-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.despre-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 100, 0.88);
    z-index: 1;
}

.despre-page > * {
    position: relative;
    z-index: 2;
}

.despre-logo img,
.despre-logo svg {
    height: 70px;
    width: auto;
}

.despre-intro {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 550px;
    opacity: 0.9;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-accent);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-accent);
    z-index: 3;
}

.timeline-item--left .timeline-content {
    width: 45%;
    text-align: right;
    padding-right: 40px;
}

.timeline-item--right .timeline-content {
    width: 45%;
    margin-left: 55%;
    padding-left: 40px;
}

.timeline-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.timeline-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #fff;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15%;
    }
    .timeline-item::before {
        left: 15%;
    }
    .timeline-item--left .timeline-content,
    .timeline-item--right .timeline-content {
        width: 80%;
        margin-left: 25%;
        padding-left: 30px;
        text-align: left;
        padding-right: 0;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    background-image: url('../assets/images/arad-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 100, 0.88);
    z-index: 1;
}

.contact-page > * {
    position: relative;
    z-index: 2;
}

/* Glass panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 30px;
    color: #fff;
}

.glass-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.glass-panel h2.accent {
    color: var(--color-accent);
}

.contact-info-item {
    font-size: 0.9rem;
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-social a {
    color: #fff;
}

.contact-social a:hover {
    color: var(--color-accent);
}

.contact-social svg {
    width: 30px;
    height: 30px;
}

.contact-middle-text {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.85;
}

.contact-middle-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Contact form */
.form-input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-input:focus {
    border-color: var(--color-accent) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 0.2rem rgba(242, 154, 12, 0.15) !important;
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-label {
    font-size: 0.78rem;
    opacity: 0.8;
}

.btn-submit {
    background-color: var(--color-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 40px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--color-accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 154, 12, 0.3) !important;
}

/* ============================================
   EMISIUNI PAGE
   ============================================ */
.emisiuni-page-banner {
    width: 100%;
    height: 150px;
    background-image: url('../assets/images/arad-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.emisiuni-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 20, 100, 0.7);
}

.emisiuni-page-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    font-style: italic;
    white-space: nowrap;
}

.emisiuni-page-title::after {
    content: '';
    flex-grow: 1;
    height: 3px;
    background-color: var(--color-primary);
}

.emisiune-full-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.emisiune-full-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.emisiune-full-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* ============================================
   EMISIUNE DETAIL PAGE
   ============================================ */
.emisiune-detail-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emisiune-detail-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
}

.emisiune-detail-title::after {
    content: '';
    flex-grow: 1;
    height: 3px;
    background-color: var(--color-primary);
}

.episode-card {
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    color: inherit;
    display: flex;
}

.episode-card:hover {
    transform: translateX(3px);
    color: inherit;
}

.episode-thumbnail {
    position: relative;
    overflow: hidden;
}

.episode-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 200px;
}

.episode-thumbnail .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-thumbnail .play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.episode-thumbnail .episode-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 10px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.episode-info {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    background-color: #efefef;
    flex: 1;
}

.episode-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-style: italic;
}

.episode-info .episode-date {
    font-size: 0.95rem;
    color: #888;
    margin-left: 12px;
}

/* ============================================
   SCROLL ANIMATION
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
