/* ============================================
   MisterStrang3 - Minimal & Clean Design
   ============================================ */

:root {
    /* Colors */
    --color-bg: #FAFAF8;
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-text-muted: #888;
    --color-border: #E5E5E3;
    --color-card-bg: #FFFFFF;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing - tighter */
    --space-xs: 0.375rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Layout */
    --max-width: 900px;
    --content-padding: clamp(1rem, 4vw, 2rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-md) var(--content-padding);
    background: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* ============================================
   Hero - Profile + Social Pills
   ============================================ */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) var(--content-padding) var(--space-lg);
}

.hero-profile {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #E8E4DF 0%, #D4D0CB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image.no-image img {
    display: none;
}

.profile-fallback {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
    display: none;
}

.profile-image.no-image .profile-fallback {
    display: block;
}

.profile-info {
    flex: 1;
    padding-top: var(--space-xs);
}

.profile-name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* Social Pills */
.social-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pill:hover {
    border-color: var(--color-text);
    transform: translateY(-1px);
}

.pill svg {
    width: 16px;
    height: 16px;
}

.pill.featured {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.pill.featured:hover {
    background: #333;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.quick-link:hover {
    background: #333;
    transform: translateY(-2px);
}

.quick-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Content Wall - Full Width TikTok Masonry
   ============================================ */
.content-wall {
    padding: var(--space-lg) var(--content-padding) var(--space-xl);
    background: var(--color-bg);
}

.wall-header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.wall-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wall-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), gap var(--transition-fast);
}

.wall-link:hover {
    color: var(--color-text);
    gap: 10px;
}

/* Masonry Wall */
.tiktok-wall {
    column-count: 4;
    column-gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.tiktok-item {
    break-inside: avoid;
    margin-bottom: 16px;
    background: var(--color-card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tiktok-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    z-index: 10;
    position: relative;
}

/* Size variations - add visual weight through padding and borders */
.tiktok-item.size-sm {
    border-radius: 12px;
}

.tiktok-item.size-md {
    border-radius: 16px;
    border-width: 1px;
}

.tiktok-item.size-lg {
    border-radius: 20px;
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tiktok-item.size-lg:hover {
    border-color: var(--color-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Random rotation for organic feel */
.tiktok-item:nth-child(3n+1) {
    transform: rotate(-0.5deg);
}

.tiktok-item:nth-child(3n+2) {
    transform: rotate(0.3deg);
}

.tiktok-item:nth-child(5n) {
    transform: rotate(-0.8deg);
}

.tiktok-item:hover {
    transform: rotate(0) translateY(-4px) scale(1.02) !important;
}

/* Override TikTok embed styles */
.tiktok-item .tiktok-embed {
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.tiktok-item iframe {
    border-radius: inherit !important;
    max-width: 100% !important;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--content-padding);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .tiktok-wall {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .tiktok-wall {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .hero-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-md);
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        padding-top: 0;
    }

    .social-pills {
        justify-content: center;
    }

    .quick-links {
        justify-content: center;
    }

    .wall-header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .tiktok-wall {
        column-count: 1;
        max-width: 400px;
    }

    .pill span {
        display: none;
    }

    .pill {
        padding: 10px;
    }

    .pill svg {
        width: 20px;
        height: 20px;
    }

    .pill.featured span {
        display: inline;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-link {
        justify-content: center;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
