/* ===========================
   Binder Detail - Hero Section
   =========================== */

.binder-header {
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 112, 156, 0.06) 100%);
    position: relative;
    overflow: hidden;
}

.binder-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.binder-header.has-cover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.binder-header.has-cover .binder-header-title h2,
.binder-header.has-cover .binder-header-meta,
.binder-header.has-cover .binder-header-meta a,
.binder-header.has-cover .binder-header-meta span {
    color: #fff;
}

.binder-header.has-cover .binder-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== Header Layout ===== */
.binder-header-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.binder-color-indicator {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    position: relative;
}

.binder-header-title {
    flex: 1;
    min-width: 0;
}

.binder-header-title h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.binder-creator-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.binder-creator-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ===== Meta Info ===== */
.binder-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    margin-top: 10px;
}

.binder-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.binder-meta-item i {
    color: #667eea;
    font-size: 14px;
}

/* ===== Badges ===== */
.binder-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.binder-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.binder-badge-shared {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

.binder-badge-default {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
}

.binder-badge-pokedex {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

.binder-badge-private {
    background-color: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.2);
}

/* ===== Dark Theme ===== */
.theme-dark .binder-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 112, 156, 0.04) 100%);
    border-color: #334155;
}

.theme-dark .binder-header::before {
    background: radial-gradient(circle, rgba(102, 126, 234, 0.04) 0%, transparent 70%);
}

.theme-dark .binder-header:not(.has-cover) .binder-header-title h2 {
    color: #f1f5f9;
}

.theme-dark .binder-header:not(.has-cover) .binder-header-meta,
.theme-dark .binder-header:not(.has-cover) .binder-header-meta span,
.theme-dark .binder-header:not(.has-cover) .binder-meta-item {
    color: #94a3b8;
}

.theme-dark .binder-header:not(.has-cover) .binder-meta-item i {
    color: #818cf8;
}

.theme-dark .binder-creator-link {
    color: #818cf8;
}

.theme-dark .binder-creator-link:hover {
    color: #a5b4fc;
}

.theme-dark .binder-color-indicator {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-dark .binder-badge-shared {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

.theme-dark .binder-badge-default {
    background-color: rgba(102, 126, 234, 0.15);
    color: #818cf8;
    border-color: rgba(102, 126, 234, 0.25);
}

.theme-dark .binder-badge-pokedex {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.theme-dark .binder-badge-private {
    background-color: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .binder-header {
        padding: 20px;
    }

    .binder-header-top {
        gap: 14px;
    }

    .binder-color-indicator {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .binder-header-title h2 {
        font-size: 20px;
    }

    .binder-header-meta {
        gap: 10px;
        font-size: 12px;
    }

    .binder-badges {
        gap: 6px;
    }

    .binder-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}
