:root {
    --primary: #FF5A00; /* Vibrant Orange Brico */
    --primary-dark: #E04E00;
    --dark: #1A1A1A; /* Anthracite/Noir */
    --gray-dark: #333333;
    --gray-medium: #888888;
    --bg-color: #F4F5F7;
    --card-bg: #FFFFFF;
    --success: #10B981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 -4px 24px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--dark);
    padding-bottom: 90px; /* Space for footer */
}

/* Header */
.header {
    background-color: var(--dark);
    color: white;
    padding: 24px 20px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
}

/* Hook Message */
.hook-message {
    margin: 20px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.5s ease-out;
}

.hook-message i {
    font-size: 2rem;
}

.hook-message p {
    font-size: 1rem;
    line-height: 1.4;
}

/* Projects List */
.projects-list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.project-card:active {
    transform: scale(0.98);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 16px;
    font-weight: 500;
}

.sponsor {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--gray-dark);
    background: var(--bg-color);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    width: fit-content;
}

.sponsor-logo {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Simulated Logos with CSS */
.logo-karcher { background-color: #FCE500; color: #000; font-family: sans-serif; font-style: italic; font-size: 36px; }
.logo-hubo { background-color: #E2001A; color: white; font-family: sans-serif; font-weight: 900; font-size: 16px; text-transform: uppercase; }
.logo-powerplus { background-color: #FFD700; color: #000; font-family: 'Arial Black', sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: -1px; }
.logo-soudal { background-color: #D31245; color: white; font-family: sans-serif; font-weight: 900; font-size: 20px; text-transform: uppercase; }
.logo-substral { background-color: #008A3C; color: white; font-family: sans-serif; font-weight: bold; font-size: 16px; text-transform: uppercase; }
.logo-hozelock { background-color: #FFD200; color: #003366; font-family: sans-serif; font-weight: 900; font-size: 16px; text-transform: uppercase; }
.logo-keter { background-color: #E3000F; color: white; font-family: sans-serif; font-weight: 900; font-size: 18px; text-transform: uppercase; }
.logo-knauf { background-color: #005A9B; color: white; font-family: sans-serif; font-weight: bold; font-size: 18px; text-transform: uppercase; }

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 18px;
    background-color: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:active {
    background-color: var(--gray-dark);
}

.btn-primary.checkout-btn {
    background-color: var(--success);
    margin-top: 16px;
}
.btn-primary.checkout-btn:active {
    background-color: #059669;
}

/* Bottom Sheet */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background: var(--card-bg);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
    flex-shrink: 0;
}

.drag-handle {
    width: 48px;
    height: 6px;
    background: #DDDDDD;
    border-radius: 3px;
    margin: 0 auto 16px;
}

.sheet-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    padding: 0 30px;
}

.icon-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #F4F5F7;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
}

.sheet-content {
    padding: 24px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 24px;
}
.progress-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.progress-text .counter {
    color: var(--primary);
    font-weight: 700;
}
.progress-bar-bg {
    height: 10px;
    background: #EAEAEA;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Checklist */
.materials-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.material-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.material-item:active {
    transform: scale(0.98);
}

.material-item.checked {
    opacity: 0.5;
    background: transparent;
}

.checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.material-item.checked .checkbox {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkbox i {
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.material-item.checked .checkbox i {
    opacity: 1;
}

.material-info {
    flex-grow: 1;
}

.material-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 4px;
    transition: text-decoration 0.2s;
}

.material-item.checked .material-name {
    text-decoration: line-through;
    color: var(--gray-medium);
}

.material-promo {
    display: inline-block;
    font-size: 0.8rem;
    color: white;
    background-color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.material-item.checked .material-promo {
    filter: grayscale(1);
    opacity: 0.7;
}

/* Completion Message */
.completion-message {
    background: #F0FDF4;
    border: 2px solid var(--success);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.completion-message.hidden {
    display: none;
}

.success-icon {
    font-size: 56px;
    color: var(--success);
    margin-bottom: 12px;
}

.completion-message h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--success);
    margin-bottom: 8px;
}

.completion-message p {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 20px;
}
.completion-message strong {
    color: var(--success);
    font-size: 1.2rem;
}

/* Footer Radio */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 30;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bottom-bar:active {
    background: #252525;
}

.radio-status {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #EF4444;
    border-radius: 50%;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.bottom-bar.playing .live-dot {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.radio-status i {
    font-size: 1.4rem;
    color: var(--primary);
}

.waves {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.wave {
    width: 4px;
    background-color: var(--primary);
    border-radius: 4px;
    height: 4px;
    transition: height 0.2s;
}

.bottom-bar.playing .wave {
    animation: sound 0.5s infinite alternate;
}

.bottom-bar.playing .wave:nth-child(1) { height: 100%; animation-delay: 0s; }
.bottom-bar.playing .wave:nth-child(2) { height: 40%; animation-delay: 0.2s; }
.bottom-bar.playing .wave:nth-child(3) { height: 80%; animation-delay: 0.4s; }

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes sound {
    0% { height: 20%; }
    100% { height: 100%; }
}
