﻿:root {
    --primary: #0a1628;
    --secondary: #0f2744;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #1d4ed8;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 60%);
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.08));
    animation: float 20s ease-in-out infinite;
}

    .shape:nth-child(1) {
        width: 300px;
        height: 300px;
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .shape:nth-child(2) {
        width: 200px;
        height: 200px;
        top: 60%;
        right: 10%;
        animation-delay: -5s;
    }

    .shape:nth-child(3) {
        width: 150px;
        height: 150px;
        bottom: 20%;
        left: 30%;
        animation-delay: -10s;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 10px) rotate(3deg);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Announcement Banner */
.announcement {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    animation: slideDown 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

    .announcement::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.announcement-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .announcement-icon svg {
        width: 24px;
        height: 24px;
        fill: white;
    }

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.announcement-text {
    font-size: 15px;
    color: white;
    font-weight: 500;
    line-height: 1.6;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
    position: relative;
}

    .logo::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 27px;
        background: linear-gradient(135deg, var(--accent-light), transparent, var(--accent));
        z-index: -1;
        opacity: 0.5;
    }

    .logo svg {
        width: 45px;
        height: 45px;
        fill: white;
    }

.header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Portal Links */
.portal-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.portal-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out both;
}

    .portal-card:nth-child(1) {
        animation-delay: 0.3s;
    }

    .portal-card:nth-child(2) {
        animation-delay: 0.4s;
    }

    .portal-card:nth-child(3) {
        animation-delay: 0.5s;
    }

    .portal-card:nth-child(4) {
        animation-delay: 0.6s;
    }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portal-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(59, 130, 246, 0.15);
}

    .portal-card:hover::before {
        opacity: 1;
    }

.portal-card:active {
    transform: translateY(-2px) scale(0.99);
}

.card-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.portal-card:hover .card-number {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border-color: transparent;
    transform: rotate(-5deg) scale(1.05);
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.portal-card:hover .card-title {
    color: var(--accent-light);
}

.card-url {
    font-size: 14px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.card-arrow {
    width: 44px;
    height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-top: 30px;
}

    .card-arrow svg {
        width: 20px;
        height: 20px;
        fill: var(--text-muted);
        transition: all 0.4s ease;
        transform: rotate(180deg);
    }

.portal-card:hover .card-arrow {
    background: var(--accent);
    border-color: transparent;
    transform: translateX(-8px);
}

    .portal-card:hover .card-arrow svg {
        fill: white;
    }

/* Status Badge */
.status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .status-badge.online {
        background: rgba(16, 185, 129, 0.15);
        color: var(--success);
    }

    .status-badge.recommended {
        background: rgba(59, 130, 246, 0.15);
        color: var(--accent-light);
    }

    .status-badge.offline {
        background: rgb(185 16 16 / 27%);
        color: #b91010;
    }
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    padding: 10px 18px;
    border-radius: 30px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

    .footer-hint svg {
        width: 16px;
        height: 16px;
        fill: var(--accent);
    }

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 24px 16px;
    }

    .announcement {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        font-size: 26px;
    }

    .portal-card {
        padding: 20px;
        gap: 16px;
    }

    .card-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-url {
        font-size: 12px;
    }

    .card-arrow {
        width: 40px;
        height: 40px;
    }

    .status-badge {
        top: 12px;
        left: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }
}