/* Кастомные стили */
:root {
    --primary: #667eea;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/warframe-bg.png') center/cover;
    opacity: 0.1;
}

.hero h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.promo-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #764ba2);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.promo-card.active {
    border-left-color: var(--success);
}

.promo-card.expired {
    border-left-color: var(--danger);
    opacity: 0.8;
}

.promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.promo-header h3 {
    margin: 0;
    color: var(--dark);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success);
    color: white;
}

.status-badge.expired {
    background: var(--danger);
    color: white;
}

.promo-code {
    font-family: 'Courier New', monospace;
    background: var(--dark);
    color: var(--success);
    padding: 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.promo-code:hover {
    background: #374151;
    border-color: var(--success);
    transform: scale(1.02);
}

.promo-code::after {
    content: '📋 кликните чтобы скопировать';
    display: block;
    font-size: 0.7em;
    color: #9ca3af;
    margin-top: 0.5rem;
    font-family: sans-serif;
}

.reward {
    color: var(--primary);
    margin: 1rem 0;
    font-weight: 600;
    font-size: 1.1em;
}

.description {
    color: #6b7280;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.expires {
    font-size: 0.9em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.expires::before {
    content: '⏰';
    font-size: 1em;
}

#loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1em;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.hidden {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Навигация */
nav {
    background: var(--dark) !important;
    margin-bottom: 2rem;
}

nav ul li strong {
    color: var(--primary);
    font-size: 1.2em;
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    transform: translateY(-2px);
}

/* Футер */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .promo-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav ul li {
        text-align: center;
    }
}

/* Анимации */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.promo-card {
    animation: fadeIn 0.5s ease;
}

/* Стили для изображений */
.promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Кнопки действий */
.promo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9em;
}

.copy-btn {
    background: var(--success);
    color: white;
}

.copy-btn:hover {
    background: #0da271;
    transform: translateY(-2px);
}

.redeem-btn {
    background: var(--warning);
    color: white;
}

.redeem-btn:hover {
    background: #e69500;
    transform: translateY(-2px);
}

/* Улучшенные уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification.error {
    background: var(--danger);
}

/* Заголовки секций */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-header h2 {
    margin: 0;
}


/* Стили для страницы статуса */
.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 5px solid #10b981;
}

.status-card.response-time {
    border-left-color: #f59e0b;
}

.status-card.players {
    border-left-color: #667eea;
}

.status-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2em;
}

.status-card p {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--dark);
}

.server-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #10b981;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.server-card.offline {
    border-left-color: #ef4444;
    opacity: 0.8;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.server-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.status-indicator {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-indicator.online {
    background: #10b981;
    color: white;
}

.status-indicator.offline {
    background: #ef4444;
    color: white;
}

.server-region {
    color: #6b7280;
    margin: 0.3rem 0;
    font-size: 0.9em;
}

.response-time {
    color: #f59e0b;
    font-weight: 600;
    margin: 0.5rem 0;
}

.incident-history {
    margin-top: 3rem;
}

.incident-item {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #6b7280;
}

.incident-item.resolved {
    border-left-color: #10b981;
}

.incident-item.monitoring {
    border-left-color: #f59e0b;
}

.incident-status {
    background: #6b7280;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 1rem;
}

.incident-item.resolved .incident-status {
    background: #10b981;
}

.incident-item.monitoring .incident-status {
    background: #f59e0b;
}

.incident-date {
    color: #6b7280;
    font-size: 0.9em;
}

.incident-item p {
    margin: 0.5rem 0 0 0;
    color: #374151;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

/* Активная ссылка в навигации */
nav ul li a.active {
    background: var(--primary);
    color: white;
    border-radius: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .status-overview {
        grid-template-columns: 1fr;
    }
    
    .server-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
