@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(20,20,20,0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
    margin: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* لینک‌های منو با تصویر پشت متن */
.nav-links li {
    position: relative;
}

.nav-links li a {
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

/* تصویر پشت متن لینک‌ها */
.nav-links li a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/images/link.png') center/cover no-repeat;
    z-index: -1;
    opacity: 0.2;
    filter: brightness(0.4);
    transition: all 0.4s ease;
    border-radius: inherit;
}

/* Hover و Active */
.nav-links li a:hover::before,
.nav-links li a.active::before {
    opacity: 0.2;
    filter: brightness(1.0);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* نشان ویژه مثل badge محرم */
.muharram-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.5);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: pulse-glow 2s infinite;
}

.current-date {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 300;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.image-container {
    position: relative;
    max-width: 400px;
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(20,20,20,0.8), rgba(0,0,0,0.95));
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
            0 0 50px rgba(255,255,255,0.1),
            inset 0 0 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow:
            0 0 80px rgba(255,255,255,0.15),
            inset 0 0 50px rgba(0,0,0,0.5);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(40,40,40,0.6), rgba(0,0,0,0.9));
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.placeholder-text {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    z-index: 1;
    position: relative;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .site-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .current-date {
        font-size: 0.8rem;
    }

    .main-content {
        padding: 1rem;
        min-height: calc(100vh - 120px);
    }

    .image-container {
        max-width: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .nav-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-links li a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.banner-cover:hover {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.headline > [class*="col-"] {
    display: flex;
}

#newsCarousel,
.headline .card {
    flex: 1;
}

.banner-cover {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

@media (max-width: 767.98px) {
    .headline > [class*="col-"] {
        display: block;
    }

    .headline .card,
    #newsCarousel {
        height: auto;
    }

    .banner-cover {
        height: 550px !important;
    }
    .carousel-caption h5{
        font-size:15px !important;
    }
    .carousel-caption {
        width:90%;
        text-align:center;
        margin:0 auto;
        left:5%;
        right:5%;
    }
}

.site-logo-floating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    max-height: 140px;
    width: auto;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.site-logo-floating:hover {
    transform: translate(-50%, -20%) scale(1.05);
}

@media (max-width: 768px) {
    .site-logo-floating {
        max-height: 100px;
        transform: translate(-50%, -10%);
    }
    .site-logo-floating {
        left: 10%;
    }
    .navbox{
        margin-top:15px;
    }
}

header.main-header {
    overflow: visible;
}

.player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 9999;
}

.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.player:hover .controls {
    opacity: 1;
}

.controls button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .player {
        width: 100px;
        height: 100px;
        bottom: 10px;
        right: 10px;
    }
}
@media (min-width: 768px) {
    body {
        overflow: hidden;
    }
}