/* 
   Project: tashev.ru Redesign 2026 
   Theme: Premium Dark / Bento Grid
*/

:root {
    /* Colors */
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-accent: #6366f1; /* Indigo 500 */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-glass: linear-gradient(180deg, rgba(20, 20, 20, 0.7) 0%, rgba(20, 20, 20, 0.95) 100%);

    /* Spacing */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    --gap: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Grid Layout (The Bento) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--gap);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto; /* Define row heights loosely */
    }
}

/* Card Styles */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.15);
    background-color: var(--bg-card-hover);
}

/* Specific Card Sizes & Spans */
/* Profile Card - Large */
.card-profile {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 768px) {
    .card-profile {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Wide Cards */
.card-wide {
    grid-column: span 1;
}
@media (min-width: 768px) {
    .card-wide {
        grid-column: span 2;
    }
}

/* Tall Cards */
.card-tall {
    grid-row: span 2;
}

/* Typography & Elements */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Social Icon List */
.social-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-item:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile Tweaks */
@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    .card {
        padding: 20px;
    }
}
