/*
Theme Name: TheDalWeb PRO+
Description: Ultimate Premium Tamil News UI
Version: 5.0
*/

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Noto Sans Tamil',sans-serif;
    background:#f8fafc;
    color:#0f172a;
    overflow-x:hidden;
    line-height:1.7;
}

.dark body{
    background:#0f172a;
    color:#f1f5f9;
}

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

a{
    text-decoration:none;
    color:inherit;
    transition:.25s ease;
}

::selection{
    background:#2563eb;
    color:#fff;
}

/* =========================================
   CONTAINER
========================================= */
.container{
    width:100%;
    max-width:1280px;
    margin:auto;
    padding:0 16px;
}

/* =========================================
   HEADER
========================================= */
header{
    position:sticky;
    top:0;
    z-index:999;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    background:rgba(255,255,255,.8);
    border-bottom:1px solid rgba(0,0,0,.06);
}

.dark header{
    background:rgba(15,23,42,.8);
    border-color:rgba(255,255,255,.06);
}

.header-logo{
    font-size:28px;
    font-weight:900;
    color:#2563eb;
    letter-spacing:-1px;
}

/* =========================================
   HERO SLIDER
========================================= */
.hero-container{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    background:#000;
    min-height:520px;
}

.hero-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    transition:opacity .8s ease;
    z-index:1;
}

.hero-slide.active{
    opacity:1;
    visibility:visible;
    z-index:20;
}

.hero-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    transform:scale(1);
    transition:transform 7s ease;
}

.hero-slide.active img{
    transform:scale(1.06);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.92),
        rgba(0,0,0,.35),
        transparent
    );
}

.hero-title{
    font-size:clamp(30px,4vw,54px);
    font-weight:900;
    line-height:1.15;
    letter-spacing:-1px;
    color:#fff;
}

.hero-meta{
    display:flex;
    gap:18px;
    color:#d1d5db;
    font-size:13px;
    margin-top:14px;
    font-weight:700;
}

.hero-dot{
    transition:.3s;
}

/* =========================================
   BREAKING BAR
========================================= */
.breaking-bar{
    background:#dc2626;
    color:#fff;
    padding:10px 14px;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:10px;
    overflow:hidden;
}

.breaking-wrap{
    overflow:hidden;
    white-space:nowrap;
}

.breaking-text{
    display:inline-block;
    white-space:nowrap;
    animation:scrollText 18s linear infinite;
}

@keyframes scrollText{
    0%{transform:translateX(100%)}
    100%{transform:translateX(-100%)}
}

/* =========================================
   CARD UI
========================================= */
.card,
.tdw-card,
.tdw-search-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #eef2ff;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:.35s ease;
}

.dark .card,
.dark .tdw-card,
.dark .tdw-search-card{
    background:#1e293b;
    border-color:#334155;
}

.card:hover,
.tdw-card:hover,
.tdw-search-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.tdw-search-img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:.5s ease;
}

.tdw-search-card:hover .tdw-search-img{
    transform:scale(1.05);
}

.tdw-search-content{
    padding:18px;
}

.tdw-search-title{
    font-size:20px;
    font-weight:900;
    line-height:1.45;
    margin-bottom:10px;
}

.tdw-search-excerpt{
    font-size:15px;
    color:#64748b;
    line-height:1.8;
}

.dark .tdw-search-excerpt{
    color:#cbd5e1;
}

.tdw-search-meta{
    margin-top:14px;
    font-size:12px;
    color:#94a3b8;
    font-weight:700;
}

/* =========================================
   ARTICLE PAGE
========================================= */
.tdw-title{
    font-size:clamp(32px,5vw,58px);
    font-weight:900;
    line-height:1.15;
    letter-spacing:-1px;
    margin-bottom:20px;
    color:#0f172a;
}

.dark .tdw-title{
    color:#fff;
}

.tdw-intro{
    font-size:20px;
    line-height:1.9;
    font-weight:500;
    color:#334155;
    margin-bottom:18px;
}

.dark .tdw-intro{
    color:#dbeafe;
}

.page-content{
    background:#fff;
    padding:34px;
    border-radius:24px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.05),
        0 2px 10px rgba(0,0,0,.03);
}

.dark .page-content{
    background:#1e293b;
}

.page-content p{
    font-size:19px;
    line-height:2;
    margin-bottom:24px;
    color:#1e293b;
}

.dark .page-content p{
    color:#e2e8f0;
}

.page-content p:first-of-type{
    font-size:22px;
    font-weight:500;
}

.page-content strong{
    color:#2563eb;
}

.page-content a{
    color:#2563eb;
    font-weight:700;
}

.page-content h2{
    font-size:34px;
    font-weight:900;
    line-height:1.35;
    margin-top:55px;
    margin-bottom:20px;
    padding-left:18px;
    position:relative;
    scroll-margin-top:100px;
}

.page-content h2::before{
    content:"";
    position:absolute;
    left:0;
    top:5px;
    width:6px;
    height:85%;
    border-radius:50px;
    background:linear-gradient(to bottom,#2563eb,#9333ea);
}

.page-content h3{
    font-size:26px;
    font-weight:800;
    margin-top:40px;
    margin-bottom:14px;
}

.page-content ul,
.page-content ol{
    padding-left:24px;
    margin-bottom:24px;
}

.page-content li{
    margin-bottom:12px;
    line-height:1.9;
}

.page-content img{
    width:100%;
    border-radius:20px;
    margin:30px 0;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

.page-content blockquote{
    border-left:5px solid #2563eb;
    background:#eff6ff;
    padding:20px;
    border-radius:14px;
    margin:30px 0;
    font-style:italic;
}

.dark .page-content blockquote{
    background:#0f172a;
}

.page-content hr{
    border:none;
    height:3px;
    border-radius:50px;
    margin:40px 0;
    background:linear-gradient(to right,#2563eb,#9333ea);
}

/* =========================================
   TOC
========================================= */
.tdw-toc{
    background:#eff6ff;
    border-left:4px solid #2563eb;
    padding:20px;
    border-radius:18px;
    margin:24px 0;
}

.dark .tdw-toc{
    background:#0f172a;
}

.tdw-toc ul{
    list-style:none;
}

.tdw-toc li{
    margin-bottom:10px;
}

.tdw-toc a{
    color:#2563eb;
    font-weight:700;
}

/* =========================================
   CTA + HOOK
========================================= */
.tdw-hook,
.tdw-cta{
    background:linear-gradient(135deg,#2563eb,#9333ea);
    color:#fff;
    padding:16px;
    border-radius:16px;
    text-align:center;
    font-weight:800;
    margin:20px 0;
}

/* =========================================
   SHARE BUTTONS
========================================= */
.tdw-share-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 20px;
    border-radius:999px;
    color:#fff;
    font-weight:800;
    transition:.3s;
}

.tdw-share-btn:hover{
    transform:translateY(-3px);
}

.whatsapp{background:#25D366;}
.facebook{background:#1877F2;}
.twitter{background:#111827;}
.telegram{background:#229ED9;}

/* =========================================
   SIDEBAR
========================================= */
.sidebar{
    position:sticky;
    top:90px;
}

/* =========================================
   ADS
========================================= */
.tdw-ad{
    background:#f8fafc;
    padding:14px;
    border-radius:16px;
    margin:30px 0;
}

.dark .tdw-ad{
    background:#0f172a;
}

/* =========================================
   PAGINATION
========================================= */
.tdw-pagination{
    display:flex;
    justify-content:center;
    margin-top:30px;
}

.tdw-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    height:44px;
    padding:0 14px;
    border-radius:12px;
    background:#eff6ff;
    color:#0f172a;
    font-weight:800;
    margin:0 4px;
}

.tdw-pagination .current{
    background:#2563eb;
    color:#fff;
}

/* =========================================
   FLOAT SHARE
========================================= */
.tdw-float-share{
    position:fixed;
    right:18px;
    bottom:90px;
    z-index:999;
}

.tdw-float-share a{
    width:52px;
    height:52px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#25D366;
    color:#fff;
    font-size:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

/* =========================================
   MOBILE
========================================= */
@media(max-width:768px){

    .hero-container{
        min-height:320px;
        border-radius:18px;
    }

    .hero-title{
        font-size:28px;
    }

    .hero-meta{
        flex-wrap:wrap;
        gap:10px;
    }

    .tdw-title{
        font-size:38px;
        line-height:1.2;
    }

    .tdw-intro{
        font-size:18px;
    }

    .page-content{
        padding:20px;
        border-radius:18px;
    }

    .page-content p{
        font-size:17px;
        line-height:1.95;
    }

    .page-content h2{
        font-size:28px;
    }

    .page-content h3{
        font-size:22px;
    }

    .tdw-search-img{
        height:180px;
    }

    .sidebar{
        position:relative;
        top:0;
    }

    .tdw-float-share{
        display:none;
    }

}
/* =========================================
   🔥 PREMIUM TRENDING SIDEBAR
========================================= */

.tdw-trending{
    background:#ffffff;
    border-radius:24px;
    padding:24px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.05),
        0 2px 10px rgba(0,0,0,.03);
    border:1px solid #eef2ff;
    position:sticky;
    top:90px;
}

.dark .tdw-trending{
    background:#1e293b;
    border-color:#334155;
}

/* TITLE */
.tdw-trending-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:26px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:24px;
    position:relative;
    padding-bottom:14px;
}

.dark .tdw-trending-title{
    color:#f8fafc;
}

.tdw-trending-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:3px;
    border-radius:30px;
    background:linear-gradient(to right,#ef4444,#f97316);
}

/* ITEM */
.tdw-trending-item{
    display:flex;
    gap:14px;
    margin-bottom:22px;
    padding-bottom:22px;
    border-bottom:1px solid #e5e7eb;
    transition:.3s ease;
    position:relative;
}

.dark .tdw-trending-item{
    border-color:#334155;
}

.tdw-trending-item:last-child{
    border-bottom:none;
    margin-bottom:0;
    padding-bottom:0;
}

.tdw-trending-item:hover{
    transform:translateX(4px);
}

/* NUMBER */
.tdw-trending-number{
    position:absolute;
    left:-8px;
    top:-5px;
    font-size:42px;
    font-weight:900;
    color:rgba(148,163,184,.15);
    line-height:1;
    pointer-events:none;
}

/* IMAGE */
.tdw-trending-thumb{
    width:95px;
    height:95px;
    min-width:95px;
    border-radius:18px;
    overflow:hidden;
    position:relative;
}

.tdw-trending-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s ease;
}

.tdw-trending-item:hover img{
    transform:scale(1.08);
}

/* CONTENT */
.tdw-trending-content{
    flex:1;
}

/* TITLE */
.tdw-trending-text{
    font-size:17px;
    font-weight:800;
    line-height:1.6;
    color:#0f172a;
    margin-bottom:10px;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.dark .tdw-trending-text{
    color:#f1f5f9;
}

.tdw-trending-text:hover{
    color:#2563eb;
}

/* META */
.tdw-trending-meta{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:12px;
    color:#94a3b8;
    font-weight:700;
    text-transform:uppercase;
}

/* MOBILE */
@media(max-width:768px){

    .tdw-trending{
        padding:18px;
        border-radius:20px;
        margin-top:20px;
    }

    .tdw-trending-title{
        font-size:22px;
    }

    .tdw-trending-item{
        gap:12px;
        margin-bottom:18px;
        padding-bottom:18px;
    }

    .tdw-trending-thumb{
        width:88px;
        height:88px;
        min-width:88px;
        border-radius:16px;
    }

    .tdw-trending-text{
        font-size:16px;
        line-height:1.5;
    }

    .tdw-trending-number{
        font-size:34px;
    }

}
