/* استایل‌های اصلی حالت تعمیر - نسخه 1.2 */
:root {
    --gold-color: #D4AF37;
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --font-family: Vazirmatn, Tahoma, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: 10px;
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --animation-speed: 0.5s;
}

/* ریست و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.gold-maintenance-body {
    font-family: var(--font-family);
    background-color: var(--bg-color) !important;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
}

/* انیمیشن برف */
.snow-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.snow-animation::before {
    content: "";
    position: absolute;
    top: -10px;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 50%),
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.6) 0%, transparent 50%),
        radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,0.7) 0%, transparent 50%),
        radial-gradient(1px 1px at 40% 50%, rgba(255,255,255,0.8) 0%, transparent 50%),
        radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.6) 0%, transparent 50%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.7) 0%, transparent 50%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.8) 0%, transparent 50%),
        radial-gradient(1px 1px at 80% 90%, rgba(255,255,255,0.6) 0%, transparent 50%);
    background-size: 200px 200px;
    animation: snowFall 10s linear infinite;
}

@keyframes snowFall {
    0% { transform: translateY(-100px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

/* کانتینر اصلی */
.gold-maintenance-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 30px 25px;
    border-radius: 25px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    transition: all var(--animation-speed) ease;
}

/* افکت شیشه‌ای */
.gold-maintenance-container.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

/* افکت لبه طلایی */
.gold-maintenance-container.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    border-radius: 25px 25px 0 0;
    z-index: 1;
}

/* پس‌زمینه داخلی شیشه‌ای */
.gold-maintenance-container.glass-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    z-index: -1;
}

/* لوگو */
.maintenance-logo {
    margin-bottom: 25px;
    text-align: center;
}

.maintenance-logo img {
    max-height: 70px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.maintenance-logo img:hover {
    transform: scale(1.05);
}

/* آیکون اصلی */
.maintenance-icon {
    margin-bottom: 25px;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
    }
    50% { 
        transform: scale(1.05) rotate(5deg);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    }
}

.gold-icon {
    fill: var(--gold-color);
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

/* عنوان */
.maintenance-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gold-color);
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    padding: 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* انیمیشن متن */
.text-animation .maintenance-title .title-text {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold-color), #ffd700, #f4c542, var(--gold-color));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.text-animation .maintenance-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { width: 60px; opacity: 1; }
    50% { width: 100px; opacity: 0.7; }
}

/* توضیحات */
.maintenance-description {
    font-size: 1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.6;
    padding: 0 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-animation .maintenance-description {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* تایمر شمارش معکوس */
.countdown-container {
    margin: 35px 0;
    direction: ltr;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px 10px;
    min-width: 70px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.time-unit.hidden-unit {
    display: none;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(255, 215, 0, 0.05) 50%,
        rgba(212, 175, 55, 0.1) 100%
    );
    z-index: -1;
}

.time-value-wrapper {
    position: relative;
    height: 50px;
    width: 100%;
    overflow: hidden;
    perspective: 500px;
}

.time-value {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
}

.time-value.current {
    transform: rotateX(0deg);
    z-index: 2;
}

.time-value.next {
    transform: rotateX(90deg);
    z-index: 1;
}

.time-value.flipping {
    animation: flipNumber 0.6s ease forwards;
}

@keyframes flipNumber {
    0% {
        transform: rotateX(0deg);
        filter: blur(0px);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg);
        filter: blur(10px);
        opacity: 0.5;
    }
    51% {
        transform: rotateX(90deg);
        filter: blur(0px);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        filter: blur(0px);
        opacity: 1;
    }
}

.time-label {
    font-size: 0.85rem;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.time-separator {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin: 0 5px;
    font-weight: bold;
    opacity: 0.8;
    animation: pulseSeparator 2s ease-in-out infinite;
}

@keyframes pulseSeparator {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

/* اطلاعات تماس */
.contact-info {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-email {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 25px;
    border: 1px solid var(--gold-color);
    border-radius: 25px;
    margin-top: 5px;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-email:hover {
    background: var(--gold-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.contact-email:hover::before {
    left: 100%;
}

/* شبکه‌های اجتماعی */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: var(--gold-color);
    color: var(--bg-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    transform: rotate(10deg);
}

/* کپی رایت */
.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .gold-maintenance-body {
        padding: 10px;
        min-height: -webkit-fill-available;
        height: 100vh;
        overflow-y: auto;
    }
    
    .gold-maintenance-container {
        max-width: 100%;
        padding: 25px 20px;
        margin: 10px;
        border-radius: 20px;
        min-height: auto;
    }
    
    .maintenance-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        padding: 0 5px;
    }
    
    .maintenance-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .maintenance-logo img {
        max-height: 60px;
    }
    
    .maintenance-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .time-value {
        font-size: 1.8rem;
    }
    
    .time-value-wrapper {
        height: 45px;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .time-separator {
        font-size: 1.2rem;
        margin: 0 3px;
    }
    
    .countdown-display {
        gap: 5px;
    }
    
    .contact-info {
        margin: 20px 0;
        padding: 15px;
    }
    
    .contact-email {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
    
    .copyright {
        font-size: 0.8rem;
        margin-top: 20px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .gold-maintenance-container {
        padding: 20px 15px;
        border-radius: 18px;
    }
    
    .maintenance-title {
        font-size: 1.3rem;
    }
    
    .maintenance-description {
        font-size: 0.9rem;
    }
    
    .time-unit {
        min-width: 50px;
        padding: 10px 6px;
    }
    
    .time-value {
        font-size: 1.6rem;
    }
    
    .time-value-wrapper {
        height: 40px;
    }
    
    .countdown-display {
        gap: 4px;
    }
    
    .time-separator {
        font-size: 1rem;
        margin: 0 2px;
    }
    
    .time-unit.hidden-unit + .time-separator {
        display: none;
    }
}

@media (max-width: 360px) {
    .gold-maintenance-container {
        padding: 15px 12px;
    }
    
    .maintenance-title {
        font-size: 1.2rem;
    }
    
    .time-unit {
        min-width: 45px;
        padding: 8px 5px;
    }
    
    .time-value {
        font-size: 1.4rem;
    }
    
    .time-value-wrapper {
        height: 35px;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
}

/* حالت پرینت */
@media print {
    .gold-maintenance-body {
        background: white !important;
        color: black !important;
    }
    
    .gold-maintenance-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .snow-animation,
    .social-links,
    .contact-email {
        display: none !important;
    }
}

/* پشتیبانی از مرورگرهای قدیمی */
@supports not (backdrop-filter: blur(10px)) {
    .gold-maintenance-container.glass-effect {
        background: rgba(10, 10, 10, 0.95);
    }
}

/* انیمیشن ورود صفحه */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gold-maintenance-container {
    animation: pageEnter 0.8s ease-out;
}
