/* CSS Custom Properties */
:root {
    --bg-color: #111111;
    --bg-card: linear-gradient(145deg, #1a1a1a 0%, #252525 100%);
    --bg-card-hover: linear-gradient(145deg, #222222 0%, #2a2a2a 100%);
    --text-primary: #eeeeee;
    --text-secondary: #bbbbbb;
    --border-color: #333333;
    --accent-color: #444444;
    --transition: all 0.3s ease;
    --radius: 16px;
    --radius-sm: 12px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 2.5rem;
}

/* Profile Header */
.profile-header {
    text-align: center;
}

.profile-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-header .title {
    font-size: clamp(1.6rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Link Cards */
.link-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 130px;
    height: 130px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.card:focus {
    outline: 2px solid var(--text-secondary);
    outline-offset: 2px;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card-icon img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.card-label {
    font-size: 1.0rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Cards with labels - shift content down */
.card:not(.card-photo) {
    padding-top: 8px;
}

/* Photo card - no label */
.card-photo {
    padding: 0;
}

.card-photo .card-icon img {
    width: 84px;
    height: 84px;
}

/* AI Button */
.ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
}

.ai-button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.ai-button:focus {
    outline: 2px solid var(--text-secondary);
    outline-offset: 2px;
}

.ai-button svg {
    width: 28px;
    height: 28px;
}

/* Decorative Star */
.star {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    color: #333333;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
        gap: 2rem;
    }

    .link-cards {
        gap: 0.5rem;
    }

    .card {
        width: 70px;
        height: 70px;
    }

    .card-icon svg {
        width: 22px;
        height: 22px;
    }

    .card-icon img {
        width: 40px;
        height: 40px;
    }

    .card-photo .card-icon img {
        width: 44px;
        height: 44px;
    }

    .card-label {
        font-size: 0.6rem;
    }

    .ai-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .star {
        bottom: 1rem;
        right: 1rem;
    }

    .star svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 400px) {
    .card {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 20px;
        height: 20px;
    }

    .card-icon img {
        width: 36px;
        height: 36px;
    }

    .card-photo .card-icon img {
        width: 40px;
        height: 40px;
    }

    .card-label {
        font-size: 0.55rem;
    }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .star {
        display: none;
    }

    .card, .ai-button {
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
}
