/* ===================================================
   NightCast v3.0
   Designed by ChatGPT
=================================================== */

/* --------------------
Reset
-------------------- */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    direction:rtl;

    overflow-x:hidden;

    font-family:"Vazirmatn",sans-serif;

    background:#07111F;

    color:#fff;

    line-height:1.8;

}

/* --------------------
Variables
-------------------- */

:root{

    --primary:#D9A441;

    --primaryHover:#C88B11;

    --bg:#07111F;

    --bg2:#101B2C;

    --card:#162336;

    --cardHover:#1D3047;

    --border:#2A3C52;

    --text:#FFFFFF;

    --muted:#B8C3CF;

    --radius:22px;

    --shadow:
    0 10px 30px rgba(0,0,0,.28);

}

/* --------------------
Common
-------------------- */

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    cursor:pointer;

    border:none;

    outline:none;

    font-family:inherit;

}

section{

    width:min(1350px,92%);

    margin:auto;

}

h1{

    font-size:52px;

}

h2{

    font-size:36px;

}

h3{

    font-size:24px;

}

p{

    color:var(--muted);

}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:36px;

}

.section-header a{

    color:var(--primary);

    font-weight:700;

}

.section-header a:hover{

    opacity:.8;

}


/* ===================================================
HEADER
=================================================== */

.header{

    position:sticky;

    top:0;

    z-index:1000;

    height:78px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 32px;

    background:rgba(7,17,31,.88);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.06);

}

.logo-area{

    display:flex;

    align-items:center;

    gap:14px;

}

.logo{

    width:50px;

    height:50px;

    flex-shrink:0;

}

.brand{

    display:flex;

    flex-direction:column;

}

.brand h1{

    font-size:25px;

    font-weight:800;

    line-height:1.15;

    color:#fff;

}

.brand p{

    margin-top:4px;

    color:var(--primary);

    font-size:13px;

}

.desktop-menu{

    display:flex;

    align-items:center;

    gap:34px;

}

.desktop-menu a{

    color:#D9E1EA;

    font-size:15px;

    transition:.25s;

}

.desktop-menu a:hover{

    color:var(--primary);

}

.menu-button{

    display:none;

    justify-content:center;

    align-items:center;

    width:46px;

    height:46px;

    border-radius:14px;

    background:var(--card);

}

.menu-button img{

    width:24px;

    height:24px;

}

/* ===================================================
HERO
=================================================== */

.hero{

    position:relative;

    width:100%;

    height:88vh;

    min-height:620px;

    max-height:900px;

    overflow:hidden;

}

.hero-bg{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;

    filter:brightness(.38);

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

    rgba(7,17,31,.20),

    rgba(7,17,31,.82)

    );

    z-index:1;

}

.hero-overlay{

    position:relative;

    z-index:2;

    width:100%;

    height:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:30px;

}

.hero-content{

    width:min(760px,100%);

}

.hero-logo{

    width:82px;

    margin:auto;

    margin-bottom:24px;

}

.hero-content h2{

    font-size:62px;

    font-weight:900;

    line-height:1.15;

    margin-bottom:12px;

}

.hero-content h3{

    font-size:28px;

    color:var(--primary);

    margin-bottom:22px;

}

.hero-content p{

    max-width:640px;

    margin:auto;

    margin-bottom:34px;

    color:#D2DAE3;

    font-size:19px;

    line-height:2.1;

}

.hero-button{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:220px;

    height:58px;

    border-radius:40px;

    background:var(--primary);

    color:#111;

    font-weight:800;

    transition:.3s;

    box-shadow:0 10px 25px rgba(217,164,65,.25);

}

.hero-button:hover{

    background:var(--primaryHover);

    transform:translateY(-4px);

}

/* ===================================================
RESPONSIVE HERO
=================================================== */

@media (max-width:900px){

    .desktop-menu{

        display:none;

    }

    .menu-button{

        display:flex;

    }

}

@media (max-width:768px){

    .header{

        height:72px;

        padding:0 18px;

    }

    .logo{

        width:42px;

        height:42px;

    }

    .brand h1{

        font-size:22px;

    }

    .brand p{

        font-size:11px;

    }

    .hero{

        min-height:100vh;

    }

    .hero-logo{

        width:62px;

    }

    .hero-content h2{

        font-size:38px;

    }

    .hero-content h3{

        font-size:21px;

    }

    .hero-content p{

        font-size:15px;

        line-height:2;

    }

    .hero-button{

        width:190px;

        height:52px;

        font-size:16px;

    }

   }


/* ===================================================
FEATURES
=================================================== */

.features{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

    margin:90px auto;

}

.feature-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:36px 28px;

    text-align:center;

    transition:.35s;

    box-shadow:var(--shadow);

}

.feature-card:hover{

    transform:translateY(-10px);

    background:var(--cardHover);

    border-color:var(--primary);

}

.feature-card img{

    width:58px;

    height:58px;

    margin:auto;

    margin-bottom:22px;

}

.feature-card h3{

    font-size:22px;

    margin-bottom:14px;

}

.feature-card p{

    font-size:15px;

    color:var(--muted);

    line-height:2;

}

/* ===================================================
LATEST
=================================================== */

.latest-section{

    margin:90px auto;

}

.feed-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.feed-card{

    overflow:hidden;

    background:var(--card);

    border-radius:24px;

    border:1px solid var(--border);

    transition:.35s;

    box-shadow:var(--shadow);

}

.feed-card:hover{

    transform:translateY(-10px);

    border-color:var(--primary);

}

.feed-cover{

    width:100%;

    height:240px;

    object-fit:cover;

}

.feed-body{

    padding:22px;

}

.feed-body h3{

    font-size:22px;

    line-height:1.8;

    margin-bottom:14px;

    color:#fff;

}

.feed-body p{

    color:var(--muted);

    line-height:2;

    font-size:15px;

    margin-bottom:20px;

}

.feed-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:14px;

    color:#A8B4C0;

}

.feed-meta span{

    display:flex;

    align-items:center;

    gap:8px;

}

.feed-meta img{

    width:18px;

    height:18px;

}

/* ===================================================
LOADING
=================================================== */

.loading-card{

    background:var(--card);

    border-radius:24px;

    padding:18px;

    border:1px solid var(--border);

}

.loading-image{

    width:100%;

    height:220px;

    border-radius:18px;

    background:#23354D;

    animation:pulse 1.5s infinite;

}

.loading-line{

    width:100%;

    height:15px;

    margin-top:18px;

    border-radius:20px;

    background:#23354D;

    animation:pulse 1.5s infinite;

}

.loading-line.short{

    width:55%;

}

@keyframes pulse{

    0%{

        opacity:.35;

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:.35;

    }

}

/* ===================================================
TABLET
=================================================== */

@media(max-width:1100px){

    .features{

        grid-template-columns:repeat(2,1fr);

    }

    .feed-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

/* ===================================================
MOBILE
=================================================== */

@media(max-width:768px){

    .features{

        grid-template-columns:1fr;

        gap:18px;

        margin:60px auto;

    }

    .feature-card{

        padding:26px;

    }

    .feed-grid{

        grid-template-columns:1fr;

        gap:22px;

    }

    .feed-cover{

        height:210px;

    }

    .feed-body h3{

        font-size:20px;

    }

}


/* ===================================================
CATEGORIES
=================================================== */

.categories{

    margin:90px auto;

}

.category-list{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:22px;

}

.category-item{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    height:165px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:18px;

    transition:.35s;

    color:#fff;

}

.category-item:hover{

    transform:translateY(-8px);

    background:var(--cardHover);

    border-color:var(--primary);

    box-shadow:0 12px 35px rgba(217,164,65,.15);

}

.category-item img{

    width:56px;

    height:56px;

}

.category-item span{

    font-size:18px;

    font-weight:700;

}

/* ===================================================
FEATURED
=================================================== */

.featured{

    margin:100px auto;

}

.featured-card{

    display:grid;

    grid-template-columns:430px 1fr;

    gap:0;

    overflow:hidden;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:28px;

    box-shadow:var(--shadow);

}

.featured-image{

    width:100%;

    height:100%;

    min-height:420px;

    object-fit:cover;

}

.featured-info{

    padding:45px;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.featured-badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    width:max-content;

    background:var(--primary);

    color:#111;

    padding:8px 18px;

    border-radius:50px;

    font-size:14px;

    font-weight:800;

    margin-bottom:22px;

}

.featured-info h3{

    font-size:34px;

    line-height:1.7;

    margin-bottom:18px;

}

.featured-info p{

    font-size:17px;

    line-height:2.1;

    color:var(--muted);

    margin-bottom:30px;

}

.featured-meta{

    display:flex;

    gap:35px;

    flex-wrap:wrap;

    margin-bottom:34px;

}

.featured-meta div{

    display:flex;

    align-items:center;

    gap:10px;

    color:#C8D1DC;

    font-size:15px;

}

.featured-meta img{

    width:22px;

    height:22px;

}

.listen-button{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:230px;

    height:58px;

    border-radius:50px;

    background:var(--primary);

    color:#111;

    font-size:17px;

    font-weight:800;

    transition:.3s;

}

.listen-button:hover{

    background:var(--primaryHover);

    transform:translateY(-4px);

    box-shadow:0 12px 30px rgba(217,164,65,.25);

}

/* ===================================================
TABLET
=================================================== */

@media(max-width:1100px){

    .category-list{

        grid-template-columns:repeat(3,1fr);

    }

    .featured-card{

        grid-template-columns:1fr;

    }

    .featured-image{

        height:350px;

    }

}

/* ===================================================
MOBILE
=================================================== */

@media(max-width:768px){

    .category-list{

        grid-template-columns:repeat(2,1fr);

        gap:18px;

    }

    .category-item{

        height:145px;

    }

    .category-item img{

        width:48px;

        height:48px;

    }

    .category-item span{

        font-size:16px;

    }

    .featured-info{

        padding:28px;

    }

    .featured-info h3{

        font-size:26px;

    }

    .featured-info p{

        font-size:15px;

    }

    .featured-image{

        height:260px;

        min-height:auto;

    }

    .listen-button{

        width:100%;

    }

   }



/* ===================================================
SOCIAL NETWORKS
=================================================== */

.social-section{

    margin:100px auto;

}

.social-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:24px;

}

.social-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:30px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:18px;

    transition:.35s;

    min-height:170px;

}

.social-card:hover{

    transform:translateY(-8px);

    background:var(--cardHover);

    border-color:var(--primary);

}

.social-card img{

    width:56px;

    height:56px;

}

.social-card span{

    font-size:18px;

    font-weight:700;

}

/* ===================================================
FOOTER
=================================================== */

.footer{

    margin-top:100px;

    padding:70px 20px 150px;

    border-top:1px solid var(--border);

    text-align:center;

}

.footer-logo{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:16px;

    margin-bottom:24px;

}

.footer-logo img{

    width:58px;

    height:58px;

}

.footer-logo h3{

    font-size:32px;

    font-weight:800;

}

.footer p{

    color:var(--muted);

    font-size:16px;

    line-height:2;

}

.copyright{

    margin-top:18px;

    font-size:14px;

    color:#8FA2B5;

}

/* ===================================================
MINI PLAYER
=================================================== */

.mini-player{

    position:fixed;

    left:18px;

    right:18px;

    bottom:88px;

    height:82px;

    background:rgba(22,35,54,.96);

    backdrop-filter:blur(18px);

    border:1px solid var(--border);

    border-radius:22px;

    display:flex;

    align-items:center;

    gap:16px;

    padding:14px 18px;

    z-index:999;

    box-shadow:0 12px 30px rgba(0,0,0,.35);

}

#player-cover{

    width:56px;

    height:56px;

    border-radius:14px;

    object-fit:cover;

}

.player-info{

    flex:1;

}

.player-info h4{

    font-size:18px;

    margin-bottom:4px;

}

.player-info small{

    color:var(--muted);

}

#player-play{

    width:56px;

    height:56px;

    border-radius:50%;

    background:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.3s;

}

#player-play:hover{

    transform:scale(1.08);

}

#player-play img{

    width:24px;

    height:24px;

}

/* ===================================================
BOTTOM NAVIGATION
=================================================== */

.bottom-nav{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    height:74px;

    background:#101B2C;

    border-top:1px solid var(--border);

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index:1000;

}

.bottom-nav a{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:6px;

    color:#AEBBC9;

    transition:.3s;

}

.bottom-nav a:hover,

.bottom-nav a.active{

    color:var(--primary);

}

.bottom-nav img{

    width:24px;

    height:24px;

}

.bottom-nav span{

    font-size:12px;

    font-weight:600;

}

/* ===================================================
RESPONSIVE
=================================================== */

@media(max-width:1100px){

    .social-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .mini-player{

        left:10px;

        right:10px;

        bottom:84px;

    }

    .footer{

        padding-bottom:160px;

    }

}

@media(max-width:520px){

    .social-grid{

        grid-template-columns:1fr;

    }

}





/* ===================================================
ANIMATIONS
=================================================== */

.fade-up{

    opacity:0;

    transform:translateY(35px);

    animation:fadeUp .8s ease forwards;

}

.fade-delay-1{

    animation-delay:.15s;

}

.fade-delay-2{

    animation-delay:.30s;

}

.fade-delay-3{

    animation-delay:.45s;

}

.fade-delay-4{

    animation-delay:.60s;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes floating{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

.hero-logo{

    animation:floating 4s ease-in-out infinite;

}

/* ===================================================
SMOOTH HOVER
=================================================== */

.feed-card,
.feature-card,
.category-item,
.social-card,
.listen-button,
.hero-button,
#player-play{

    will-change:transform;

}

.feed-card:hover,
.feature-card:hover,
.category-item:hover,
.social-card:hover{

    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

/* ===================================================
SELECTION
=================================================== */

::selection{

    background:var(--primary);

    color:#111;

}

/* ===================================================
SCROLLBAR
=================================================== */

::-webkit-scrollbar{

    width:9px;

}

::-webkit-scrollbar-track{

    background:#07111F;

}

::-webkit-scrollbar-thumb{

    background:#D9A441;

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#C88B11;

}

/* ===================================================
IMAGE FIX
=================================================== */

img{

    user-select:none;

    -webkit-user-drag:none;

}

/* ===================================================
FOCUS
=================================================== */

button:focus,
a:focus{

    outline:2px solid var(--primary);

    outline-offset:3px;

}

/* ===================================================
BIG DESKTOP
=================================================== */

@media(min-width:1600px){

    section{

        max-width:1500px;

    }

    .hero-content{

        max-width:900px;

    }

}

/* ===================================================
TABLET
=================================================== */

@media(max-width:992px){

    h1{

        font-size:42px;

    }

    h2{

        font-size:30px;

    }

    section{

        width:94%;

    }

}

/* ===================================================
MOBILE
=================================================== */

@media(max-width:768px){

    body{

        font-size:15px;

    }

    section{

        width:92%;

    }

    .section-header{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .section-header h2{

        font-size:28px;

    }

}

/* ===================================================
SMALL MOBILE
=================================================== */

@media(max-width:420px){

    h1{

        font-size:34px;

    }

    h2{

        font-size:24px;

    }

    .hero-content h2{

        font-size:32px;

    }

    .hero-content h3{

        font-size:18px;

    }

    .hero-button{

        width:100%;

    }

    .mini-player{

        height:74px;

    }

    #player-cover{

        width:48px;

        height:48px;

    }

    #player-play{

        width:48px;

        height:48px;

    }

}

/* ===================================================
PRINT
=================================================== */

@media print{

    .header,
    .mini-player,
    .bottom-nav{

        display:none !important;

    }

    body{

        background:#fff;

        color:#000;

    }

}

/* ===================================================
END OF FILE
=================================================== */









