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

body {
    font-family: Tahoma, sans-serif;
    background: linear-gradient(180deg, #0a1628 0%, #1a3a5c 40%, #2d6a8f 100%) !important;
    direction: rtl;
    color: #2c3e50;
    position: relative;
    overflow-x: hidden;
}

/* افکت حباب‌های شناور */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 40%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.03) 0%, transparent 60%),
        radial-gradient(circle at 70% 85%, rgba(255,255,255,0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: bubblesFloat 20s ease-in-out infinite;
}

@keyframes bubblesFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

.wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, rgba(26, 58, 79, 0.95) 0%, rgba(15, 43, 58, 0.95) 100%);
    backdrop-filter: blur(20px);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(244, 164, 96, 0.2);
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffd700, #f4a460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(244, 164, 96, 0.2);
}

.logo span {
    font-size: 12px;
    opacity: 0.8;
    color: #90e0ef;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.menu li a::before {
    content: '🧼';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0;
    transition: 0.3s;
}

.menu li a:hover::before {
    opacity: 1;
    right: -30px;
}

.menu li a:hover {
    color: #ffd700;
    border-bottom-color: #f4a460;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #ffd700;
}

/* ===== بنر ===== */
.top-banner {
    margin: 0;
    padding: 0;
}

.top-banner img {
    max-width: 100%;
    display: block;
}

.placeholder-banner {
    background: linear-gradient(135deg, #1a3a5c, #2d6a8f);
    color: white;
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid rgba(244, 164, 96, 0.2);
}

.placeholder-banner h2 {
    color: #ffd700;
}

/* ===== MAIN ===== */
main {
    padding: 30px 40px;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

/* ===== دکمه طلایی ===== */
.btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, #f4a460, #ffd700);
    color: #1a1a2e;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 10px 30px rgba(244, 164, 96, 0.3);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-gold::after {
    content: '💧';
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 25px;
    animation: waterDrop 2s ease-in-out infinite;
}

@keyframes waterDrop {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-10px) scale(1.3); opacity: 1; }
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffd700, #f4a460);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(244, 164, 96, 0.5);
}

/* ===== بخش خوش‌آمدگویی ===== */
.welcome-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(235, 248, 255, 0.95));
    backdrop-filter: blur(20px);
    padding: 50px 40px !important;
    border-radius: 60px 60px 60px 20px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 20px 60px rgba(0, 180, 216, 0.2),
        inset 0 -5px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px !important;
    border: 2px solid rgba(255,255,255,0.3);
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.5s ease;
    text-align: center;
}

.welcome-section:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 180, 216, 0.3);
}

.welcome-section::before {
    content: '🧼';
    position: absolute;
    top: -20px;
    right: 30px;
    font-size: 60px;
    opacity: 0.3;
    animation: soapBubble 4s ease-in-out infinite;
}

.welcome-section::after {
    content: '✨';
    position: absolute;
    bottom: -15px;
    left: 40px;
    font-size: 50px;
    opacity: 0.2;
    animation: soapBubble 5s ease-in-out infinite reverse;
}

@keyframes soapBubble {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-20px) scale(1.2) rotate(180deg); }
}

.welcome-section h2 {
    color: #023e8a !important;
    font-size: 2.8em;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0, 180, 216, 0.2);
    position: relative;
    display: inline-block;
}

.welcome-section h2::after {
    content: '🧽';
    font-size: 40px;
    margin-right: 15px;
    display: inline-block;
    animation: spongeWiggle 2s ease-in-out infinite;
}

@keyframes spongeWiggle {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.welcome-section p {
    color: #023e8a !important;
    font-size: 1.3em;
    opacity: 0.8;
    font-weight: 500;
}

/* ===== بخش مطالب ===== */
.posts-section h2 {
    color: #fff !important;
    font-size: 2.2em;
    font-weight: 800;
    border-right: 5px solid #f4a460;
    padding-right: 20px;
    text-shadow: 0 2px 30px rgba(0, 180, 216, 0.3);
    background: linear-gradient(135deg, #fff, #90e0ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px !important;
}

/* ===== پست ویژه ===== */
.featured-post {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(235, 248, 255, 0.95));
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 30px 30px 30px 10px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.5);
    margin-bottom: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-post::before {
    content: '🕌';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 120px;
    opacity: 0.05;
    transform: rotate(-10deg);
}

.featured-post:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 80px rgba(0, 180, 216, 0.2);
}

.featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    border: 3px solid rgba(255,255,255,0.3);
}

.featured-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.2);
    border-color: #f4a460;
}

.featured-post h2 a {
    color: #023e8a;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 800;
    transition: color 0.3s ease;
}

.featured-post h2 a:hover {
    color: #f4a460;
}

.featured-post div {
    color: #2d3436 !important;
    font-size: 1.05em;
    line-height: 2;
}

/* ===== کارت‌های کوچک ===== */
.small-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.post-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240, 248, 255, 0.9));
    backdrop-filter: blur(15px);
    padding: 0;
    border-radius: 25px 25px 25px 5px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '🛋️';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 100px;
    opacity: 0.05;
    transform: rotate(15deg);
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 180, 216, 0.25);
    border-color: rgba(244, 164, 96, 0.3);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px 25px 0 0;
    transition: all 0.5s ease;
    border-bottom: 3px solid rgba(244, 164, 96, 0.2);
}

.post-card-img:hover {
    transform: scale(1.03);
}

.post-card h3 {
    padding: 15px 20px 10px;
}

.post-card h3 a {
    color: #023e8a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: #f4a460;
}

.post-card p {
    padding: 0 20px 20px;
    color: #4a4a4a !important;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== فوتر ===== */
footer {
    background: rgba(15, 43, 58, 0.95);
    backdrop-filter: blur(20px);
    color: #b0c4de;
    margin-top: 50px;
    border-top: 2px solid rgba(244, 164, 96, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px;
}

.footer-col h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li::before {
    content: '🧼 ';
    font-size: 12px;
}

.footer-col a {
    color: #b0c4de;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #ffd700;
}

.footer-bottom {
    background: rgba(7, 26, 36, 0.9);
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(244, 164, 96, 0.1);
}

.developer {
    margin-top: 5px;
    color: #ffd700;
    font-weight: 500;
}

.copyright {
    color: #7a9bb0;
}

/* ===== انیمیشن‌های ورود ===== */
@keyframes carpetUnfold {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(-10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0) scale(1);
    }
}

.welcome-section {
    animation: carpetUnfold 0.8s ease forwards;
}

.featured-post {
    animation: carpetUnfold 0.7s ease 0.2s both;
}

.post-card:nth-child(1) { animation: carpetUnfold 0.6s ease 0.3s both; }
.post-card:nth-child(2) { animation: carpetUnfold 0.6s ease 0.4s both; }
.post-card:nth-child(3) { animation: carpetUnfold 0.6s ease 0.5s both; }

/* ===== اسکرول‌بار ===== */
::-webkit-scrollbar {
    width: 10px;
    background: #0a1628;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0a1628, #1a3a5c);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f4a460, #ffd700);
    border-radius: 10px;
    border: 2px solid #0a1628;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd700, #f4a460);
}

/* ===== گلد گلو برای دکمه ===== */
.gold-glow {
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(244, 164, 96, 0.3); }
    50% { box-shadow: 0 0 40px rgba(244, 164, 96, 0.6), 0 0 80px rgba(244, 164, 96, 0.2); }
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 900px) {
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .menu.show {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    
    .small-posts {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    
    .welcome-section h2 {
        font-size: 2em;
    }
    .welcome-section h2::after {
        font-size: 30px;
    }
    .welcome-section {
        padding: 30px 20px !important;
        border-radius: 40px;
    }
    .btn-gold {
        padding: 12px 30px;
        font-size: 1em;
    }
    .featured-post h2 a {
        font-size: 1.4em;
    }
    .featured-img {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .small-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .welcome-section h2 {
        font-size: 1.5em;
    }
    .welcome-section h2::after {
        font-size: 25px;
    }
    .welcome-section p {
        font-size: 1em;
    }
    main {
        padding: 20px;
    }
    header {
        padding: 15px 20px;
    }
    .featured-img {
        height: 200px;
    }
}