/* ===== BASE COMPONENTS - REFACTORED WITH INHERITANCE ===== */

/* Base Card Component - All cards inherit from this */
.base-card {
    background: linear-gradient(135deg, rgba(26, 30, 40, 0.85), rgba(15, 20, 30, 0.95));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* Auto height - content based */
    height: auto;
    min-height: auto;
}

.base-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.base-card:hover::before {
    left: 100%;
}

.base-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(37, 99, 235, 0.15);
}

.base-card > * {
    position: relative;
    z-index: 1;
}

/* Base Section Component */
.base-section {
    padding: 80px 0;
    position: relative;
    /* Auto height - content based */
    min-height: auto;
}

.base-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3), transparent);
}

/* Base Button Component */
.base-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.1));
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.base-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.base-button:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.2));
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    color: #ffffff;
    text-decoration: none;
}

.base-button:hover::before {
    opacity: 1;
}

/* CTA Button - Special variant for call-to-action */
.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border: 1px solid var(--primary-blue);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    font-size: 1rem;
    padding: 16px 32px;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-3px);
}

/* Telegram CTA Button - Special for Telegram contact */
.telegram-cta {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    border: 1px solid #0088cc;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
}

.telegram-cta:hover {
    background: linear-gradient(135deg, #00a8ff, #0088cc);
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4);
    transform: translateY(-3px);
}

/* Base Heading Component */
.base-heading {
    font-family: 'Orbitron', 'Big Shoulders Display', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.base-heading-accent {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.85), rgba(37, 99, 235, 0.9), rgba(255, 255, 255, 0.95));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Base Text Component */
.base-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* Subtle Holiday Accent - Light New Year Theme */
.holiday-accent {
    position: relative;
}

.holiday-accent::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1.2rem;
    opacity: 0.5;
    animation: twinkle 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.15) rotate(180deg); }
}

/* Light holiday sparkle for sections */
.section-holiday-accent::before {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatSparkle 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatSparkle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 0.2; }
}

/* Section Divider - Elegant */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3), transparent);
    margin: 60px 0;
    border: none;
}

/* Content Wrapper - Auto height */
.content-wrapper {
    width: 100%;
    height: auto;
    min-height: auto;
}

/* Grid Container - Responsive */
.grid-container {
    display: grid;
    gap: 30px;
    width: 100%;
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1200px) {
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3-col,
    .grid-2-col,
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
    
    .base-section {
        padding: 60px 0;
    }
}

