/* Page-specific styles for links page */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: #667eea;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.link-btn.hot {
    position: relative;
}

.link-btn .hot-icon {
    color: #ff6b6b;
    font-size: 18px;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
    background: #fff;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

.modal-overlay.show {
    display: flex !important;
}

.modal-popup {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin: 0;
}

.modal-header i {
    color: #999;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close i {
    display: none;
}

.modal-close:not(:disabled) i {
    display: block;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-close:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.modal-close-countdown {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b6b;
    min-width: 30px;
    text-align: center;
    display: inline-block;
    animation: countdownPulse 1.0s ease-in-out;
}

@keyframes countdownPulse {
    0% {
        transform: scale(1.5);
        opacity: 0;
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.modal-content ins {
    display: block;
    width: 100%;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .social-icons a {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .social-icons a:hover {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .link-btn {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .link-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .modal-popup {
        background: #1e1e2e;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .modal-header {
        color: rgba(255, 255, 255, 0.9);
    }

    .modal-title {
        color: rgba(255, 255, 255, 0.8);
    }

    .modal-close {
        color: rgba(255, 255, 255, 0.7);
    }

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    .modal-close-countdown {
        color: #f59e0b;
    }

    .modal-header i {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .social-icons {
        gap: 12px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .link-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .link-btn .hot-icon {
        font-size: 16px;
    }

    .modal-popup {
        padding: 20px;
        max-width: 320px;
    }

    .modal-title {
        font-size: 14px;
        color: #999;
    }
}
