/* style-brand-v5.css - 2025-11-18 - Claude Opus 4.1 */
/* Brand theme with animated PLAYGROUND letters */

/* --- 1. Brand Foundation & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@700&family=PT+Sans+Caption:wght@400&family=Advent+Pro:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-bg: #111111;
    --brand-text: #EAEAEA;
    --brand-text-secondary: #86868b;
    --brand-accent: #8A2BE2; /* Violet */
    --brand-accent-glow: rgba(138, 43, 226, 0.25); /* Subtle glow color */
    --brand-border-light: #333333;
    --brand-border-dark: #222222;
}

body {
    font-family: 'PT Sans Caption', sans-serif;
    background: var(--brand-bg);
    min-height: 100vh;
    padding: 20px;
    color: var(--brand-text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. PLAYGROUND Animation (from style-v1) --- */
.playground-wrapper {
    margin-bottom: 30px;
}

.playground-title {
    display: flex;
    justify-content: center;
    position: relative;
    height: 120px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.letters-container {
    position: relative;
    width: 580px;
    height: 120px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.letters-container:hover {
    cursor: pointer;
}

.letter {
    font-family: 'Advent Pro', sans-serif;
    font-weight: 700;
    font-size: 5.5rem;
    position: absolute;
    text-transform: uppercase;
    -webkit-text-stroke: 3px;
    text-stroke: 3px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.08));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: letterBounce 0.8s ease-out;
    animation-fill-mode: both;
}

.letter-d {
    text-transform: lowercase;
}

@keyframes letterBounce {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotate(0deg);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--rotation));
    }
}

/* Hover effect - straighten all letters with proper kerning */
.letters-container:hover .letter {
    transform: rotate(0deg) !important;
    top: 20px !important;
    cursor: pointer;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.12));
    color: var(--brand-accent) !important; /* All letters turn brand purple on hover */
    -webkit-text-stroke-color: var(--brand-accent) !important;
}

.letters-container:hover .letter-p { left: 0px; }
.letters-container:hover .letter-l { left: 58px; }
.letters-container:hover .letter-a { left: 106px; }
.letters-container:hover .letter-y { left: 166px; }
.letters-container:hover .letter-g { left: 218px; }
.letters-container:hover .letter-r { left: 278px; }
.letters-container:hover .letter-o { left: 332px; }
.letters-container:hover .letter-u { left: 395px; }
.letters-container:hover .letter-n { left: 455px; }
.letters-container:hover .letter-d { left: 515px; }

/* Individual letter styles with brand-appropriate colors */
.letter-p {
    left: 0px;
    top: 25px;
    color: #e3e8f0;
    -webkit-text-stroke-color: #64748b;
    --rotation: -15deg;
    transform: rotate(-15deg);
    animation-delay: 0.1s;
    z-index: 5;
}

.letter-l {
    left: 50px;
    top: 0px;
    color: #d4f1d4;
    -webkit-text-stroke-color: #22c55e;
    --rotation: 18deg;
    transform: rotate(18deg);
    animation-delay: 0.2s;
    z-index: 4;
}

.letter-a {
    left: 90px;
    top: 20px;
    color: #dbeafe;
    -webkit-text-stroke-color: #3b82f6;
    --rotation: -8deg;
    transform: rotate(-8deg);
    animation-delay: 0.3s;
    z-index: 6;
}

.letter-y {
    left: 150px;
    top: -5px;
    color: #dbeafe;
    -webkit-text-stroke-color: #3b82f6;
    --rotation: 15deg;
    transform: rotate(15deg);
    animation-delay: 0.4s;
    z-index: 3;
}

.letter-g {
    left: 210px;
    top: 30px;
    color: #fed7aa;
    -webkit-text-stroke-color: #ea580c;
    --rotation: -12deg;
    transform: rotate(-12deg);
    animation-delay: 0.5s;
    z-index: 7;
}

.letter-r {
    left: 270px;
    top: 5px;
    color: #e3e8f0;
    -webkit-text-stroke-color: #64748b;
    --rotation: 10deg;
    transform: rotate(10deg);
    z-index: 2;
    animation-delay: 0.6s;
}

.letter-o {
    left: 320px;
    top: 25px;
    color: #fed7aa;
    -webkit-text-stroke-color: #ea580c;
    --rotation: -15deg;
    transform: rotate(-15deg);
    animation-delay: 0.7s;
    z-index: 8;
}

.letter-u {
    left: 380px;
    top: 3px;
    color: #d4f1d4;
    -webkit-text-stroke-color: #22c55e;
    --rotation: 12deg;
    transform: rotate(12deg);
    animation-delay: 0.8s;
    z-index: 4;
}

.letter-n {
    left: 440px;
    top: 23px;
    color: #e3e8f0;
    -webkit-text-stroke-color: #64748b;
    --rotation: -18deg;
    transform: rotate(-18deg);
    animation-delay: 0.9s;
    z-index: 6;
}

.letter-d {
    left: 500px;
    top: 0px;
    color: #dbeafe;
    -webkit-text-stroke-color: #3b82f6;
    --rotation: 20deg;
    transform: rotate(20deg);
    animation-delay: 1.0s;
    z-index: 5;
}

/* --- 3. Branded Typography --- */
h1 { 
    display: none !important; /* Hidden to show only animated PLAYGROUND */
    font-family: 'Bitter', serif; 
    font-size: 3rem; 
    font-weight: 700; 
    color: var(--brand-accent); 
    margin-bottom: 20px; 
    text-align: center; 
}

.project-name { 
    font-family: 'Bitter', serif; 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--brand-text); 
    transition: color 0.3s ease; 
}

.project-card:hover .project-name { 
    color: var(--brand-accent); 
}

/* --- 4. General Layout & Structure --- */
.container { max-width: 1200px; margin: 0 auto; }
header { text-align: center; padding: 80px 20px 40px; border-bottom: 1px solid var(--brand-border-light); margin-bottom: 40px; }
.subtitle { color: var(--brand-text-secondary); max-width: 500px; margin: 0 auto 25px; line-height: 1.7; }
.stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; }
.stat strong { color: var(--brand-accent); margin-right: 8px; font-weight: 500; }
.stat::before { display: none; }

/* --- 5. Filter & Tags --- */
.filter-section { margin-bottom: 40px; background: transparent; padding: 20px; border-radius: 8px; border: 1px solid var(--brand-border-dark); }
.filter-header { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.filter-title { font-size: 0.875rem; font-weight: 500; color: var(--brand-text); text-transform: uppercase; letter-spacing: 0.5px; }
.chevron { border-color: var(--brand-text-secondary); border-style: solid; border-width: 0 2px 2px 0; display: inline-block; height: 8px; width: 8px; transform: rotate(45deg); transition: transform 0.4s; }

.filter-body { overflow: hidden; max-height: 500px; padding-top: 20px; transition: all 0.4s ease; }
.filter-section.collapsed .filter-body { max-height: 0; padding-top: 0; }
.filter-section.collapsed .chevron { transform: rotate(-135deg); }

.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { padding: 8px 18px; background: var(--brand-bg); border: 1px solid var(--brand-border-light); border-radius: 999px; color: var(--brand-text-secondary); cursor: pointer; transition: all 0.3s ease; }
.tag:hover { color: var(--brand-accent); border-color: var(--brand-accent); }
.tag.active { background: var(--brand-accent); color: white; border-color: var(--brand-accent); }

/* --- 6. Project Grid & Cards --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 30px; margin-bottom: 60px; }

.project-card {
    background: var(--brand-bg);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--brand-border-light);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* The subtle glow effect */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 100% 0, var(--brand-accent-glow), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

.project-card:hover { 
    border-color: var(--brand-accent);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.hidden {
    display: none;
}

/* Position card content above the glow */
.card-body, .card-footer {
    position: relative;
    z-index: 2;
}

.card-header { position: relative; padding-bottom: 15px; }
.card-title-group { display: flex; align-items: center; gap: 15px; }
.project-icon { font-size: 2rem; flex: 0 0 auto; }
.card-title-group > div { flex: 1 1 auto; min-width: 0; }

.project-type, .status-badge { font-size: 0.7rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--brand-text-secondary); border: 1px solid var(--brand-border-light); background: transparent; }
.card-footer-top { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }

.status-beta { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }
.status-wip { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }
.status-private { background: #e0e7ff; color: #312e81; border: 1px solid #818cf8; }

.project-subtitle { font-size: 0.8rem; color: #9ca3af; font-weight: 400; margin-left: 4px; }
.project-tagline { color: var(--brand-text); font-size: 1.1rem; font-weight: 500; }
.project-description { color: var(--brand-text-secondary); line-height: 1.7; }
.project-content { margin-bottom: 20px; min-height: 60px; }
.project-links { display: flex; flex-wrap: wrap; gap: 15px; margin-top: auto; padding-top: 20px; }
.project-link { color: var(--brand-text); text-decoration: none; font-weight: 500; }
.project-link:hover { color: var(--brand-accent); text-decoration: underline; }

.card-footer { padding-top: 20px; border-top: 1px solid var(--brand-border-dark); }
.project-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-tag { font-size: 0.75rem; padding: 4px 10px; background: transparent; color: var(--brand-text-secondary); border-radius: 4px; border: 1px solid var(--brand-border-light); transition: all 0.3s ease; }
.project-tag:hover { color: var(--brand-accent); border-color: var(--brand-accent); }

/* --- 7. Footer --- */
footer { padding: 40px 20px; color: #888; text-align: center; border-top: 1px solid var(--brand-border-light); }
footer a { color: var(--brand-text-secondary); font-weight: 500; text-decoration: none; }
footer a:hover { color: var(--brand-accent); text-decoration: underline; }

/* --- 8. Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .stats { flex-direction: column; gap: 15px; }
    .projects-grid { grid-template-columns: 1fr; }
    
    /* PLAYGROUND responsive adjustments */
    .playground-wrapper { margin-bottom: -20px; }
    .playground-title { transform: scale(0.6); height: 80px; }
    .letter { font-size: 5rem; }
}