/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */

:root {
    --bg-primary: #0a0a1a;
    --bg-card: rgba(30, 30, 50, 0.8);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-yellow: #f5bc4c;
    --accent-orange: #e8654a;
    --accent-green: #4ade80;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-image: url('assets/bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    /* Ensure background is dark if image fails loading */
    background-color: #1a1a2e;
}

/* Blur overlay */
/* Blur overlay removed */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* Removed blur and brightness filter */
    background: rgba(0, 0, 0, 0.2);
    /* Slight tint for readability only */
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   App Container
   ========================================================================== */

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 480px;
    /* Removed background gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.hero-bg {
    display: none;
    /* Hide old bg image element if present */
}

.hero-overlay {
    /* Removed dark overlay */
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
}

/* Circular Profile Layout */
.profile-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.text-name {
    font-size: 24px;
    font-weight: 800;
    fill: var(--text-primary);
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.text-role {
    font-size: 14px;
    font-weight: 500;
    fill: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.bio-static {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.content {
    padding: 1.5rem 1rem 3rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.section-header:first-child {
    margin-top: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.view-all {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Featured Card (Compact colored cards)
   ========================================================================== */

.featured-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.featured-card:hover {
    background: #252525;
    transform: translateX(4px);
}

.featured-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.featured-card-image {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    border-radius: 4px;
}

.featured-card-content {
    flex: 1;
    min-width: 0;
}

.featured-card-text h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   Link Cards (Simple list items)
   ========================================================================== */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

.link-item:hover {
    background: #252525;
    transform: translateX(4px);
}

.link-item-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.link-item-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.link-item-content {
    flex: 1;
    min-width: 0;
}

.link-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.link-item-arrow {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Badge */
.badge {
    position: absolute;
    top: -6px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge-hot {
    background: #ef4444;
    color: white;
}

.badge-sale {
    background: var(--accent-yellow);
    color: #000;
}

.badge-new {
    background: var(--accent-green);
    color: #000;
}

/* Code Container */
.code-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.code-box:hover {
    background: rgba(255, 255, 255, 0.15);
}

.code-box.copied {
    background: rgba(74, 222, 128, 0.2);
}

.code-value {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
    color: var(--accent-yellow);
}

.code-copy {
    font-size: 0.8rem;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.product-card {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 0.75rem;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

@media (max-width: 380px) {
    .hero {
        height: 320px;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .name {
        font-size: 1.5rem;
    }
}

/* Safe area */
@supports (padding: max(0px)) {
    .content {
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }
}

/* ==========================================================================
   Category Cards (Main Menu)
   ========================================================================== */

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.category-card:hover {
    background: #252525;
    transform: translateX(4px);
}

.category-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.category-card-content {
    flex: 1;
    min-width: 0;
}

.category-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-card-arrow {
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* ==========================================================================
   Back Button & Page Header
   ========================================================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--text-primary);
}

.page-header {
    padding: 0 1.25rem 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}