@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS — Temple palette
   ============================================================ */
:root {
    color-scheme: dark;

    /* Core palette */
    --bg-deep:          #0b0f19;
    --bg-surface:       #131826;
    --text-primary:     #ffffff;
    --text-secondary:   #94a3b8;
    --text-muted:       #64748b;
    --accent:           #9d50ff;          
    --accent-hover:     #8b3dff;
    --accent-glow:      rgba(157, 80, 255, 0.4);
    --accent-subtle:    rgba(157, 80, 255, 0.1);
    --border:           rgba(148, 163, 184, 0.12);
    --purple-light:     #c084fc;
    
    /* Layout specific variables */
    --card-bg:          rgba(19, 24, 38, 0.75);
    --shadow:           0 4px 24px rgba(0, 0, 0, 0.45);

    /* Fonts */
    --font-body:    'Rubik', 'Inter', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Rubik', sans-serif;
}

/* --- BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 30% 0%, #1d1638 0%, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- BACKGROUND CANVAS --- */
#bg-canvas, #click-particle-canvas { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
}
#bg-canvas { z-index: -1; }
#click-particle-canvas { z-index: 9999; }

/* --- LAYOUT --- */
.main-container {
    width: 100%;
    max-width: 500px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* --- HEADER --- */
header {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
}

.username {
    font-size: clamp(2.5rem, 6vw, 4rem); 
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-display);
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--purple-light)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(157, 80, 255, 0.4));
}

/* --- GRID CONTENT AREA --- */
#content-area {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.25rem;
}

/* Section Headers - Span full width */
.section-header {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Link Cards - Utilizing RoCode/Temple Aesthetics */
.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 0.5rem; 
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 80, 255, 0.4);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Large Icon Image */
.thumb-img {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-bottom: 1rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.link-card:hover .thumb-img {
    transform: scale(1.05);
}

/* Text at the bottom */
.link-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
}