/* ===================================================
 * PACK SYSTEM CSS - Cards Album Extensions
 * Extrahiert aus cards-album.ejs für bessere Organisation
 * =================================================== */

/* === HERO BLUR BACKGROUNDS === */
.cards-hero-title {
    position: relative;
}

.hero-title-blur-background {
    position: absolute;
    top: -20px;
    left: -30px;
    right: -30px;
    bottom: -20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none; /* Keine Interaktion blockieren */
    backdrop-filter: blur(10px); /* Blur-Effekt */
    -webkit-backdrop-filter: blur(10px); /* Safari-Unterstützung */
    

    /* Transparenz-Gradienten: horizontal + vertikal kombiniert */
    mask-image: 
        linear-gradient(to right,
            rgba(0,0,0,0) 7%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,1) 85%,
            rgba(0,0,0,0) 93%),
        linear-gradient(to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,1) 20%,
            rgba(0,0,0,1) 80%,
            rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in; /* Safari */
}

/* Hero Stats Blur Background - gleicher Effekt wie bei Überschrift */
.cards-hero-stats {
    position: relative;
}

.hero-stats-blur-background {
    position: absolute;
    top: -80px;
    left: -30px;
    right: -30px;
    bottom: -20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
    
    /* Transparenz-Gradienten: horizontal + vertikal kombiniert */
    mask-image: 
        linear-gradient(to right,
            rgba(0,0,0,0) 7%,
            rgba(0,0,0,1) 15%,
            rgba(0,0,0,1) 85%,
            rgba(0,0,0,0) 93%),
        linear-gradient(to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,1) 20%,
            rgba(0,0,0,1) 80%,
            rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in; /* Safari */
}

/* === PACK LOCK STYLING === */
.pack-lock {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
    opacity: 1;
    transform: scale(1);
    transition: 
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pack-lock.fade-out {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
}

.pack-lock img {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    /* Verstärkter drop-shadow für PNG-Form */
    filter: 
        drop-shadow(3px 5px 8px rgba(0, 0, 0, 0.6))
        drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.4));
}

.pack-lock:hover img {
    transform: scale(1.1);
    filter: 
        drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.6))
        drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.4))
        drop-shadow(0px 0px 10px rgba(255, 215, 0, 0.3));
}

/* === PACK OPEN BUTTON === */
.pack-open-button {
    background: linear-gradient(145deg, #ffa500, #ff8c00);
    border: none;
    border-radius: 10px;
    color: #4a2c0a;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    margin: 0;
    
    /* 3D Knete-Effekt - orangegelb, aber kompakter für inline */
    transform: translateY(-3px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 
                 0 -1px 0 rgba(0, 0, 0, 0.3);
    
    box-shadow: 
        0 3px 0 #e67e00,           /* Unterer 3D-Schatten (reduziert) */
        0 4px 8px rgba(0, 0, 0, 0.2), /* Weicher Schatten */
        inset 0 1px 0 rgba(255, 255, 255, 0.4), /* Oberer Glanz */
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);      /* Unterer Schatten */
    
    /* Verhindert Textauswahl */
    user-select: none;
    -webkit-user-select: none;
}

.pack-open-button:hover {
    background: linear-gradient(145deg, #ffb84d, #ffa500);
    transform: translateY(-2px); /* Von -3px auf -2px (1px runter) */
    box-shadow: 
        0 2px 0 #e67e00,           /* Reduzierter 3D-Schatten */
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.pack-open-button:active {
    transform: translateY(0px); /* Von -3px auf 0px (3px runter insgesamt) */
    box-shadow: 
        0 0px 0 #e67e00,           /* Komplett gedrückt */
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* === COLLECTION STATS === */
.collection-stats {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === ALBUM INFO === */
.album-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-card li::before {
    content: '✨ ';
    margin-right: 0.5rem;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.category-actions {
    text-align: center;
}

/* === PACK READY CONTAINER & BUTTON === */
.pack-ready {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.pack-ready-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.pack-open-btn {
    background: linear-gradient(145deg, #ffa500, #ff8c00);
    border: none;
    border-radius: 12px;
    color: #4a2c0a;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    
    /* 3D Knete-Effekt */
    transform: translateY(-3px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3), 
                 0 -1px 0 rgba(0, 0, 0, 0.3);
    
    box-shadow: 
        0 4px 0 #e67e00,
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    
    user-select: none;
    -webkit-user-select: none;
}

.pack-open-btn:hover {
    background: linear-gradient(145deg, #ffb84d, #ffa500);
    transform: translateY(-2px);
    box-shadow: 
        0 3px 0 #e67e00,
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.pack-open-btn:active {
    transform: translateY(0px);
    box-shadow: 
        0 0px 0 #e67e00,
        0 2px 5px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.pack-open-btn .btn-text {
    font-size: 14px;
}

.pack-open-btn .btn-icon {
    font-size: 18px;
}

/* Login-Button (kleinerer Button ohne Icon) */
.pack-open-btn.login-btn {
    padding: 10px 20px;
    font-size: 13px;
    gap: 0;
}

.pack-open-btn.login-btn .btn-text {
    font-size: 13px;
}
