/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --secondary: #ff8c42;
    --accent: #0088cc;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border: #333333;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1a1a1a;
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* === LAYOUT CLASSES === */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.content-safe-zone {
    position: relative;
    z-index: 3;
}

/* === HEADER CLASSES === */
.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.logo__icon {
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
    animation: ghostFloat 3s ease-in-out infinite;
}

.logo__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    letter-spacing: 1px;
}

@keyframes ghostFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
    75% { transform: translateY(-8px) rotate(-2deg); }
}

/* === CARD CLASSES === */
.card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    border-color: var(--primary);
}

.card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.card__icon {
    font-size: 1.3rem;
    color: var(--primary);
}

.card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === LINK CLASSES === */
.link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.link-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.link-item__icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Specific icon colors */
.fa-youtube { color: #ff0000; }
.fa-telegram { color: var(--accent); }
.fa-download { color: var(--primary); }
.fa-check-circle { color: var(--primary); }
.fa-external-link-alt { color: var(--primary); }
.fa-search { color: var(--primary); }
.fa-ghost { color: var(--primary); }

/* === FOOTER CLASSES === */
.quick-access {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.quick-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    border-color: var(--primary);
}

/* === TOOLTIP CLASSES === */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    border: 1px solid var(--primary);
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: -2px;
}

/* === LEAF CLASSES === */
.leaves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Base leaf class */
.leaf {
    position: absolute;
    opacity: 0.85;
    animation: leafFall linear infinite;
    top: -40px;
}

/* Leaf type 1 - Classic orange */
.leaf--type1 {
    width: 20px;
    height: 20px;
    background: #ff5500;
    border-radius: 50% 50% 50% 0;
    filter: drop-shadow(0 0 4px rgba(255, 85, 0, 0.5));
}

.leaf--type1::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 4px;
    height: 4px;
    background: #8B4513;
    border-radius: 50%;
}

/* Leaf type 2 - Yellow-orange gradient */
.leaf--type2 {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    border-radius: 60% 40% 70% 30%;
    filter: drop-shadow(0 0 3px rgba(255, 140, 0, 0.4));
}

.leaf--type2::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 3px;
    height: 3px;
    background: #654321;
    border-radius: 50%;
}

@keyframes leafFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0.85;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.85;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* === RESPONSIVE CLASSES === */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo__title {
        font-size: 2.2rem;
    }
    
    .logo__icon {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .card__header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .link-item {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .quick-access {
        gap: 1rem;
    }
    
    .quick-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Mobile leaf sizes */
    .leaf--type1 {
        width: 16px;
        height: 16px;
    }
    .leaf--type2 {
        width: 14px;
        height: 14px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }
    
    .logo__title {
        font-size: 1.8rem;
    }
    
    .logo__icon {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .link-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .quick-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Small mobile leaf sizes */
    .leaf--type1 {
        width: 14px;
        height: 14px;
    }
    .leaf--type2 {
        width: 12px;
        height: 12px;
    }
}