* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

header h1 {
    background: linear-gradient(45deg, #FFC107, #FFEB3B, #FFD600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

header p {
    color: #BBDEFB;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
    font-size: 1.2em;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plugin-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.plugin-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.plugin-card h2 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.plugin-card p {
    color: #ddd;
    margin-bottom: 15px; /* Зменшено відступ для кращого розміщення */
    line-height: 1.5;
}

.links {
    display: flex;
    gap: 8px; /* Зменшено відступ між кнопками */
    margin-bottom: 15px;
    flex-wrap: nowrap; /* Заборонено переносити на новий рядок */
    justify-content: center; /* Центрування кнопок */
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 6px 12px; /* Зменшено вдвічі (було 10px 20px) */
    background: #4A235A;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.85em; /* Зменшено розмір шрифту */
    white-space: nowrap; /* Заборона переносу тексту */
}

.btn:hover {
    background: #5245c5;
    transform: translateY(-2px); /* Додано ефект підняття */
}

.btn:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
    background: #5245c5;
}

code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #00ff00;
    word-break: break-all;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #999;
}

/* Адаптивність */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .links {
        flex-direction: row; /* Залишити в рядок на мобільних */
        flex-wrap: wrap; /* Дозволити перенос при необхідності */
        justify-content: center;
    }
    
    .btn {
        padding: 5px 10px; /* Ще менші кнопки на мобільних */
        font-size: 0.8em;
        flex: 1; /* Рівна ширина */
        min-width: 100px; /* Мінімальна ширина */
        text-align: center;
    }
    
    .plugin-card {
        padding: 20px;
    }
}
/* Стилі для сповіщень */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.notification.error {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

/* Стилі для кодів при наведенні */
code {
    transition: all 0.3s ease;
    cursor: pointer;
}

code:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

code:active {
    transform: scale(0.98);
}
