/* ============================================
   YABOU.NET - Personal Dashboard Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-main: #0a0e17;
    --bg-secondary: #12161f;
    --accent: #00d4aa;
    --accent-hover: #00ffcc;
    --text-main: #e8e8e8;
    --text-sub: #6b7280;
    --pattern-color: #1a1f2e;
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Space Grotesk', sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Three.js Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

/* Header & ASCII Title */
.header {
    text-align: center;
}

.ascii-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    max-width: 100%;
}

.tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-sub);
    letter-spacing: 0.1em;
}

/* Links Section */
.links-section {
    width: 100%;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    list-style: none;
}

.link-item {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    transition: all 0.2s ease;
    position: relative;
}

.link-item::before {
    content: "[ ";
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.link-item::after {
    content: " ]";
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.link-item:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.link-item:hover::before,
.link-item:hover::after {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 212, 170, 0.7);
}

/* Footer */
.footer {
    margin-top: 2rem;
}

.footer-line {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--pattern-color);
    letter-spacing: 0.1em;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .ascii-title {
        font-size: 0.35rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

    .links-list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .link-item {
        font-size: 1rem;
    }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .ascii-title {
        font-size: 0.45rem;
    }

    .links-list {
        gap: 0.75rem 1rem;
    }

    .link-item {
        font-size: 0.95rem;
    }
}

/* Desktop (769px and up) */
@media (min-width: 769px) {
    .ascii-title {
        font-size: 0.65rem;
    }

    .container {
        padding: 3rem 2rem;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .ascii-title {
        font-size: 0.8rem;
    }

    .link-item {
        font-size: 1.1rem;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeIn 0.6s ease-out;
}

.links-section {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.footer {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

/* Focus styles for accessibility */
.link-item:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .header,
    .links-section,
    .footer {
        animation: none;
    }

    .link-item {
        transition: none;
    }
}
