/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Main container */
.container {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 1000px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -2px;
}

/* Changelog */
.changelog-section {
    background: linear-gradient(135deg, #f1f3f4 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.changelog-title {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.changelog-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #555;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-icon {
    margin-right: 10px;
    font-size: 1em;
    min-width: 20px;
    text-align: center;
}

.changelog-text {
    flex: 1;
    line-height: 1.4;
}

.status-badge.legacy {
    background: #f8f9fa;
    color: #6c757d;
}

.status-badge.offline {
    background: #f8d7da;
    color: #721c24;
}

.changelog-item.notice {
    background: #fff3cd;
    border-radius: 8px;
    padding: 10px 8px;
    border-left: 4px solid #ffc107;
}

.link-item.offline {
    opacity: 0.6;
    cursor: not-allowed;
}

.link-item.offline:hover {
    transform: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
}

/* Links sections */
.links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.links-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.links-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.section-title {
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: bottom;
    display: flex;
    align-items: center;
}

.section-icon {
    margin-right: 10px;
    font-size: 1.3em;
}

/* Link lists */
.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.link-item:hover::before {
    opacity: 1;
}

.link-item:hover {
    color: white;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.link-icon {
    margin-right: 12px;
    font-size: 1.2em;
    min-width: 20px;
    text-align: center;
}

.link-text {
    flex: 1;
}

.link-description {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Status badges */
.status-badge {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e9ecef;
    color: #495057;
    font-weight: 500;
    margin-left: 10px;
}

.status-badge.production {
    background: #d4edda;
    color: #155724;
}

.status-badge.development {
    background: #fff3cd;
    color: #856404;
}

/* Footer */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #764ba2;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .changelog-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .changelog-title {
        font-size: 1.1em;
    }
    
    .changelog-item {
        padding: 6px 0;
        font-size: 0.85em;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-section {
        padding: 15px;
    }
    
    .link-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .section-title {
        font-size: 1.3em;
    }
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.link-icon {
    animation: float 3s ease-in-out infinite;
}

.link-item:nth-child(2n) .link-icon {
    animation-delay: -1s;
}

.link-item:nth-child(3n) .link-icon {
    animation-delay: -2s;
}