:root {
    /* Claude's signature warm, creamy off-white */
    --bg-base: #FAF8F5; 
    --text-primary: #1F1F1E;
    --text-secondary: #6B6A68;
    --card-bg: #FFFFFF;
    --card-border: #E8E5E1;
    --icon-bg: #F2EFEA;
    /* Claude's signature peach/orange accent */
    --icon-color: #D97757; 
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Claude dark mode is deep and sophisticated */
        --bg-base: #181817; 
        --text-primary: #EAE9E7;
        --text-secondary: #9C9B99;
        --card-bg: #212120;
        --card-border: #333230;
        --icon-bg: #2A2A29;
        --icon-color: #D97757;
    }

    .badge-beta { background: rgba(67, 56, 202, 0.2); color: #818CF8; }
    .badge-dev { background: rgba(75, 85, 99, 0.2); color: #9CA3AF; }
    .badge-soon { background: rgba(217, 119, 6, 0.2); color: #FBBF24; }
    .badge-private { background: rgba(220, 38, 38, 0.2); color: #F87171; }
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Body uses a clean sans-serif */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    width: 100%;
    max-width: 1040px;
    padding: 100px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeIn 1s ease-out;
}

.header h1 {
    /* Claude uses elegant serifs for headings */
    font-family: 'Lora', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.header .subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
}

/* Grid */
.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* App Card */
.app-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.app-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #D97757;
}

@media (prefers-color-scheme: dark) {
    .app-item:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    }
}

.app-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--icon-bg);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.app-icon {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--icon-color);
}

.app-name {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.app-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

/* App Badges */
.app-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-popular {
    background: linear-gradient(135deg, #FFB75E 0%, #ED8F03 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(237, 143, 3, 0.3);
}
.badge-beta {
    background: #E0E7FF;
    color: #4338CA;
}
.badge-dev {
    background: #F3F4F6;
    color: #4B5563;
}
.badge-soon {
    background: #FEF3C7;
    color: #D97706;
}
.badge-private {
    background: #FEE2E2;
    color: #DC2626;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.97) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Dashboard Layout --- */
.dashboard {
    display: flex;
    gap: 40px;
    width: 100%;
}

.apps-section {
    flex: 2;
}

.timeline-section {
    flex: 1;
    min-width: 340px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

@media (max-width: 900px) {
    .dashboard {
        flex-direction: column;
    }
}

/* --- Timeline Feed --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    animation: fadeIn 0.5s ease-out;
}

.post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.post-author {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: var(--icon-bg);
    color: var(--icon-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: 'Lora', serif;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}
