/* Album Covers System - Professional Styles */

.textured-cover {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
}

.textured-cover h2 {
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 10% 5%;
    width: 85%;
    z-index: 2;
    transition: color 0.3s ease;
}

.style-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: -20px;
    z-index: 2;
    opacity: 0.8;
}

/* 1. Estándar (Legacy Inversiones, now blends with user color) */
.style-standard {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 80%),
        url('https://www.transparenttextures.com/patterns/pinstripe-dark.png');
    border: 12px double rgba(0,0,0,0.15);
}
.style-standard h2 {
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: white;
}

/* 2. Espacial (Animated Stars) */
.style-cosmic {
    background: #050505;
    background-image: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}
.style-cosmic::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: cosmic-drift 60s linear infinite;
    opacity: 0.5;
}
@keyframes cosmic-drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.style-cosmic h2 { color: #fff; text-shadow: 0 0 10px rgba(0,210,255,0.5); }
.style-cosmic .style-subtitle { color: #00d2ff; }

/* 3. Holográfico (Animated Mesh Gradient) */
.style-holographic {
    background: linear-gradient(125deg, #ff00cc, #3333ff, #00d2ff, #33ff00, #ffcc00, #ff00cc);
    background-size: 400% 400%;
    animation: holo-flow 15s ease infinite;
}
@keyframes holo-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.style-holographic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}
.style-holographic h2 { color: #000; mix-blend-mode: overlay; font-weight: 900; }
.style-holographic .style-subtitle { color: #000; opacity: 0.5; }

/* 4. Luxury Gold (Silk Texture + Gold Accents) */
.style-luxury {
    background-color: #1a1a1a;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
}
.style-luxury::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 2px solid #d4af37;
    z-index: 1;
}
.style-luxury h2 {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.style-luxury .style-subtitle { color: #d4af37; }

/* 5. Mármol (Elegant Marble Texture) */
.style-marble {
    background-color: #f5f5f5;
    background-image: url('https://www.transparenttextures.com/patterns/white-diamond.png');
}
.style-marble::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.05) 0%, transparent 100%);
    z-index: 1;
}
.style-marble h2 { color: #333; letter-spacing: 0.1em; }
.style-marble .style-subtitle { color: #888; }

/* 6. Crimson Velvet */
.style-velvet {
    background-color: #4a0404;
    background-image: url('https://www.transparenttextures.com/patterns/padded-little.png');
}
.style-velvet::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}
.style-velvet h2 { color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.style-velvet .style-subtitle { color: rgba(255,255,255,0.6); }


/* UI Selection Cards (for Admin) */
.cover-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.cover-option-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    aspect-ratio: 3/4;
    position: relative;
}

.cover-option-card.active {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0,210,255,0.4);
    transform: scale(1.05);
    z-index: 2;
}

.cover-option-card .label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.6rem;
    padding: 4px;
    text-align: center;
    z-index: 3;
    text-transform: uppercase;
    font-weight: bold;
}

.cover-option-card .textured-cover {
    pointer-events: none;
    transform: scale(0.5);
    width: 200%;
    height: 200%;
    transform-origin: top left;
}

.cover-option-card .textured-cover h2 {
    font-size: 2rem !important;
}
