:root {
    --bg-color: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary: #3a7bd5;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: pulse 8s infinite alternate;
}

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

.container {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 2rem;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.plugin-card {
    text-decoration: none;
    color: inherit;
    width: 320px;
    height: 380px;
}

/* =========================================
   Адаптация 3D Карточек с lastdev.space
========================================= */

.tilt-card { 
    position: relative; 
    transform-style: preserve-3d; 
    will-change: transform; 
    background: #111318; 
    border-radius: 20px; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    transition: transform 0.1s ease; 
}

.tilt-card::after { 
    content: ''; 
    position: absolute; 
    inset: -2px; 
    border-radius: 22px; 
    background: linear-gradient(120deg, var(--primary), var(--secondary), #8b5cf6, var(--primary));
    background-size: 300% 300%; 
    z-index: -1; 
    transform: translateZ(-10px); 
    opacity: 0; 
    transition: opacity 0.4s ease; 
    animation: gradientBorder 3s ease infinite; 
}

.tilt-card:hover::after { 
    opacity: 1; 
    transform: translateZ(-2px); 
}

@keyframes gradientBorder { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

.tilt-card::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    opacity: 0.6; 
    transition: opacity 0.3s; 
    border-radius: inherit; 
}

.tilt-card:hover::before { opacity: 1; }

.tilt-card[data-texture="carbon"]::before { 
    background: radial-gradient(black 15%, transparent 16%) 0 0, 
                radial-gradient(black 15%, transparent 16%) 8px 8px, 
                radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 0 1px, 
                radial-gradient(rgba(255,255,255,.05) 15%, transparent 20%) 8px 9px; 
    background-size: 16px 16px; 
}

.tilt-card[data-texture="metal"]::before { 
    background: linear-gradient(105deg, #0f1115 0%, #16181d 40%, #1e222b 50%, #16181d 60%, #0f1115 100%); 
}

.card-content-3d { 
    position: relative; 
    z-index: 1; 
    padding: 2.5rem; 
    height: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    transform: translateZ(50px); 
    background: linear-gradient(180deg, rgba(15,17,21,0.7) 0%, rgba(15,17,21,0.95) 100%); 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.05); 
    backdrop-filter: blur(8px); 
}

.card-content-3d h3, .card-content-3d .desc, .card-content-3d .version-badge { 
    color: #f8fafc !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    transition: transform 0.2s ease;
}

.version-badge { 
    font-size: 0.85rem; 
    font-weight: 700; 
    display: inline-block; 
    margin-bottom: 1rem; 
    opacity: 0.9;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--primary) !important;
}

.card-top h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-bottom: 1rem; 
    letter-spacing: -0.5px;
}

.card-top .desc { 
    font-size: 1rem; 
    color: var(--text-muted) !important;
    line-height: 1.6;
}

/* 3D Popout text on hover */
.tilt-card:hover .card-top h3 {
    transform: translateZ(40px);
    text-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

.tilt-card:hover .desc {
    transform: translateZ(20px);
}

.tilt-card:hover .version-badge {
    transform: translateZ(30px);
}
