*{margin:0;padding:0;box-sizing:border-box;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif}
body{background:linear-gradient(135deg,#f5f7fa 0%,#e8eef5 100%);color:#333;overflow-x:hidden}

/* Header */
header{
    background:linear-gradient(135deg,#1a73e8 0%,#1558b0 100%);
    color:#fff;
    padding:16px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter:blur(10px)
}
.brand{display:flex;align-items:center;gap:15px;animation:fadeInLeft 0.8s ease}
.brand img{width:60px;height:60px;border-radius:50%;background:#fff;padding:5px;box-shadow:0 4px 15px rgba(0,0,0,0.2);transition:transform 0.3s ease}
.brand img:hover{transform:rotate(360deg)}
.brand-text h1{font-size:1.5em;line-height:1.2;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,0.2)}
.brand-text span{font-size:.9em;opacity:.95;font-weight:500}

/* Nav */
nav{display:flex;gap:12px;animation:fadeInRight 0.8s ease}
nav a{color:#fff;text-decoration:none;background:rgba(255,255,255,.2);padding:12px 16px;border-radius:25px;display:flex;flex-direction:column;align-items:center;font-size:13px;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);backdrop-filter:blur(5px);border:1px solid rgba(255,255,255,0.1)}
nav a i{font-size:20px;margin-bottom:6px;transition:transform 0.3s ease}
nav a:hover{background:rgba(255,255,255,.35);transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.2)}
nav a:hover i{transform:scale(1.2)}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #666;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: #1558b0;
}

.breadcrumb .separator {
    color: #999;
    font-size: 0.8em;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Container */
.container{max-width:1000px;margin:40px auto;padding:0 20px}

/* Blog Post */
.blog-post{
    background:linear-gradient(135deg,#fff 0%,#f8f9ff 100%);
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 20px 50px rgba(0,0,0,.1);
    margin-bottom:40px;
    border:1px solid rgba(255,255,255,0.5);
    animation:slideInUp 0.8s ease
}

.post-image{
    width:100%;
    height:400px;
    overflow:hidden
}
.post-image img{
    width:100%;
    height:100%;
    object-fit:cover
}

.post-content{
    padding:40px
}

.post-meta{
    display:flex;
    gap:20px;
    margin-bottom:25px;
    font-size:0.9em;
    color:#666;
    flex-wrap:wrap
}
.post-meta span{
    display:flex;
    align-items:center;
    gap:8px
}
.post-meta .category{
    background:linear-gradient(135deg,#1a73e8 0%,#1558b0 100%);
    color:#fff;
    padding:6px 16px;
    border-radius:20px;
    font-weight:600
}

.post-content h1{
    color:#1a73e8;
    margin-bottom:25px;
    font-size:2.2em;
    font-weight:800;
    line-height:1.3
}

.post-body{
    color:#555;
    line-height:1.9;
    font-size:1.05em
}
.post-body h2{color:#1a73e8;margin:30px 0 15px;font-size:1.6em}
.post-body h3{color:#1558b0;margin:25px 0 12px;font-size:1.4em}
.post-body p{margin-bottom:20px}
.post-body ul,.post-body ol{margin:20px 0;padding-left:30px}
.post-body li{margin-bottom:10px}
.post-body img{max-width:100%;height:auto;border-radius:15px;margin:20px 0;box-shadow:0 10px 25px rgba(0,0,0,0.1)}
.post-body blockquote{
    border-right:4px solid #1a73e8;
    padding:15px 20px;
    margin:20px 0;
    background:rgba(26,115,232,0.1);
    border-radius:0 15px 15px 0;
    font-style:italic
}

/* Comments Section */
.comments-section{
    background:linear-gradient(135deg,#fff 0%,#f8f9ff 100%);
    border-radius:25px;
    padding:35px;
    margin-bottom:40px;
    box-shadow:0 15px 35px rgba(0,0,0,.1);
    border:1px solid rgba(255,255,255,0.5)
}
.comments-section h3{
    color:#1a73e8;
    margin-bottom:25px;
    font-size:1.8em;
    font-weight:700
}

.alert{
    padding:15px 20px;
    border-radius:15px;
    margin-bottom:20px;
    font-weight:600
}
.alert.success{
    background:rgba(37,211,102,0.1);
    color:#128c7e;
    border:1px solid #25d366
}
.alert.error{
    background:rgba(229,57,53,0.1);
    color:#c62828;
    border:1px solid #e53935
}

.comment-form{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-bottom:30px
}
.comment-form input,
.comment-form textarea{
    padding:14px 20px;
    border-radius:50px;
    border:1px solid #ddd;
    font-size:1em;
    transition:all 0.3s ease
}
.comment-form textarea{
    border-radius:20px;
    min-height:120px;
    resize:vertical
}
.comment-form input:focus,
.comment-form textarea:focus{
    border-color:#1a73e8;
    box-shadow:0 0 0 3px rgba(26,115,232,0.2);
    outline:none
}
.comment-form button{
    background:linear-gradient(135deg,#1a73e8 0%,#1558b0 100%);
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:50px;
    font-size:1em;
    font-weight:bold;
    cursor:pointer;
    transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow:0 4px 15px rgba(26,115,232,0.3)
}
.comment-form button:hover{
    background:linear-gradient(135deg,#1558b0 0%,#1a73e8 100%);
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(26,115,232,0.4)
}

.comments-list{
    display:flex;
    flex-direction:column;
    gap:20px
}
.comment{
    background:rgba(255,255,255,0.5);
    padding:20px;
    border-radius:15px;
    border:1px solid rgba(102,126,234,0.1)
}
.comment-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px
}
.comment-header strong{
    color:#1a73e8;
    font-weight:700
}
.comment-date{
    font-size:0.85em;
    color:#999
}
.comment p{
    color:#555;
    line-height:1.6
}

/* Related Posts */
.related-posts{
    margin-bottom:40px
}
.related-posts h3{
    color:#1a73e8;
    margin-bottom:25px;
    font-size:1.8em;
    font-weight:700
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px
}
.related-card{
    background:linear-gradient(135deg,#fff 0%,#f8f9ff 100%);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:all 0.3s ease;
    border:1px solid rgba(255,255,255,0.5)
}
.related-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(102,126,234,0.2)
}
.related-card img{
    width:100%;
    height:150px;
    object-fit:cover
}
.related-card h4{
    padding:15px;
    color:#333;
    font-size:1.1em;
    font-weight:600;
    line-height:1.4
}
.related-card a{
    display:block;
    padding:0 15px 15px;
    color:#667eea;
    text-decoration:none;
    font-weight:600
}
.related-card a:hover{
    color:#764ba2
}

/* Back Link */
.back-link{
    text-align:center;
    margin-bottom:40px
}
.back-link a{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#1a73e8;
    text-decoration:none;
    font-weight:600;
    font-size:1.1em;
    padding:12px 24px;
    background:rgba(26,115,232,0.1);
    border-radius:50px;
    transition:all 0.3s ease
}
.back-link a:hover{
    background:rgba(26,115,232,0.2);
    gap:15px
}

/* Fixed Contact */
.fixed-contact{
    position:fixed;
    bottom:25px;
    right:25px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:1000
}
.fixed-contact a{
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    color:#fff;
    transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
    animation:float 3s ease-in-out infinite
}
.fixed-contact .wa{background:linear-gradient(135deg,#25d366 0%,#128c7e 100%)}
.fixed-contact .call{background:linear-gradient(135deg,#1a73e8 0%,#0d47a1 100%);animation-delay:0.5s}
.fixed-contact a:hover{transform:scale(1.15);box-shadow:0 12px 30px rgba(0,0,0,0.3)}

/* Footer */
.footer-extended{
    background:linear-gradient(135deg,#1a73e8 0%,#1558b0 100%);
    color:#fff;
    padding:40px 20px;
    margin-top:80px;
    position:relative;
    overflow:hidden
}
.footer-extended::before{
    content:'';
    position:absolute;
    top:0;left:0;right:0;bottom:0;
    background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size:100px 100px;
    animation:moveBackground 30s linear infinite
}

.footer-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    align-items:start;
    position:relative;
    z-index:1
}

.footer-box{
    background:rgba(255,255,255,0.1);
    padding:25px;
    border-radius:20px;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.2);
    transition:transform 0.3s ease
}
.footer-box:hover{transform:translateY(-5px)}

.footer-box h4{
    margin-bottom:15px;
    font-size:1.2em;
    font-weight:700;
    text-shadow:2px 2px 4px rgba(0,0,0,0.2)
}

.footer-box p,
.footer-box a{
    font-size:1em;
    opacity:.95;
    color:#fff;
    text-decoration:none;
    line-height:1.9;
    transition:color 0.3s ease
}

.footer-box a:hover{
    color:#f093fb;
    text-decoration:underline
}

.footer-lang button{
    background:#fff;
    color:#1558b0;
    border:none;
    padding:10px 14px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center
}

.footer-lang .dropdown-content{
    position:relative;
    top:0;
    right:0;
    display:none;
    background:#fff;
    border-radius:12px;
    overflow:hidden
}

.footer-lang.show .dropdown-content{display:block}

.footer-lang .dropdown-content a{
    color:#1558b0;
    padding:10px 14px;
    display:block
}

.footer-lang .dropdown-content a:hover,
.footer-lang .dropdown-content a.active{
    background:#1558b0;
    color:#fff
}

/* Animations */
@keyframes fadeInLeft{
    from{opacity:0;transform:translateX(-30px)}
    to{opacity:1;transform:translateX(0)}
}
@keyframes fadeInRight{
    from{opacity:0;transform:translateX(30px)}
    to{opacity:1;transform:translateX(0)}
}
@keyframes slideInUp{
    from{opacity:0;transform:translateY(50px)}
    to{opacity:1;transform:translateY(0)}
}
@keyframes moveBackground{
    0%{background-position:0 0}
    100%{background-position:50px 50px}
}
@keyframes float{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(-10px)}
}

/* Responsive - بهبود شده برای همه دستگاه‌ها */
@media(max-width:768px){
    .post-content{padding:25px}
    .post-content h1{font-size:1.6em}
    .post-image{height:250px}
    .related-grid{grid-template-columns:1fr}
    .comments-section{padding:25px}
    
    nav{
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        justify-content:space-around;
        padding:12px 0;
        background:linear-gradient(135deg,#1a73e8 0%,#1558b0 100%);
        border-radius:20px 20px 0 0;
        z-index:1000;
        box-shadow:0 -4px 20px rgba(0,0,0,0.15);
    }
    
    body{padding-bottom:90px}
    .container{margin:40px 16px;padding:0 16px;}
    .breadcrumb .container{padding:0 16px;}
    
    /* دکمه‌های تماس ثابت - تنظیم برای موبایل */
    .fixed-contact{
        bottom:90px;
        right:15px;
        gap:10px;
    }
    
    .fixed-contact a{
        width:50px;
        height:50px;
        font-size:22px;
    }
}

@media(max-width:480px){
    .brand-text h1{font-size:1.2em;}
    .brand-text span{font-size:.8em;}
    .brand img{width:50px;height:50px;}
    
    nav a{
        padding:8px 10px;
        font-size:10px;
    }
    
    nav a i{
        font-size:16px;
        margin-bottom:3px;
    }
    
    .post-content h1{font-size:1.4em;}
    .post-content{padding:20px 15px;}
    .post-image{height:200px;}
    .comment-form input,.comment-form textarea{padding:12px 18px;font-size:0.95em;}
    
    .fixed-contact{
        bottom:85px;
        right:10px;
        gap:8px;
    }
    
    .fixed-contact a{
        width:45px;
        height:45px;
        font-size:20px;
    }
}

/* تبلت */
@media(min-width:769px) and (max-width:1024px){
    .related-grid{grid-template-columns:repeat(2,1fr)}
    .container{margin:50px 20px;}
    
    .fixed-contact{
        bottom:25px;
        right:20px;
    }
    
    .fixed-contact a{
        width:55px;
        height:55px;
        font-size:26px;
    }
}

/* لپ تاپ و دسکتاپ */
@media(min-width:1025px){
    .fixed-contact{
        bottom:30px;
        right:30px;
    }
    
    .fixed-contact a{
        width:65px;
        height:65px;
        font-size:30px;
    }
}

/* Loading States */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(26, 115, 232, 0.1);
    border-left-color: #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-post {
    height: 400px;
    border-radius: 20px;
}

/* ================== ACCESSIBILITY ================== */
*:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}