/* =============================================
   WAR MACHINE - BAND SECTION REDESIGN
   TracktomotoR - Industrial Metal Design
============================================= */

/* Industrial Metal Plate Description Style */
.band-description {
    background:
        linear-gradient(135deg,
            #2a2a2a 0%,
            #1a1a1a 25%,
            #3a3a3a 50%,
            #1a1a1a 75%,
            #2a2a2a 100%),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 100% 100%, 10px 100%;
    border: 3px solid #444;
    border-radius: 2px;
    padding: 40px;
    position: relative;
    font-family: 'Orbitron', 'Arial Black', sans-serif;
    color: #ccc;
    margin-bottom: 60px;
    overflow: visible;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.1),
        inset 0 -2px 5px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(255, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rivets/Screws in corners */
.band-description::before,
.band-description::after,
.band-description .rivet-bottom-left,
.band-description .rivet-bottom-right {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background:
        radial-gradient(circle at 30% 30%, #666 0%, #333 50%, #111 100%);
    border-radius: 50%;
    border: 2px solid #222;
    box-shadow:
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.band-description::before {
    top: 10px;
    left: 10px;
}

.band-description::after {
    top: 10px;
    right: 10px;
}

/* Create bottom rivets using pseudo elements on paragraphs */
.band-description p:last-child::before,
.band-description p:last-child::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background:
        radial-gradient(circle at 30% 30%, #666 0%, #333 50%, #111 100%);
    border-radius: 50%;
    border: 2px solid #222;
    box-shadow:
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.band-description p:last-child::before {
    bottom: 10px;
    left: 10px;
}

.band-description p:last-child::after {
    bottom: 10px;
    right: 10px;
}

/* Eliminar rivets del elemento plate-final */
.plate-final::before,
.plate-final::after {
    content: none !important;
    display: none !important;
}

/* Engraved text effect */
.band-description p {
    margin: 15px 0;
    line-height: 1.8;
    font-weight: bold;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1),
        0 -1px 2px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Metal plate header stamp */
.band-description-header {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF0000;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #fff;
    text-transform: uppercase;
    border: 2px solid #8B0000;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Add rust/wear texture overlay */
.band-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 69, 19, 0.1) 10px,
            rgba(139, 69, 19, 0.1) 20px
        );
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Scratches effect */
.band-description p::after {
    content: "";
    position: absolute;
    top: 0;
    left: -10%;
    right: -10%;
    bottom: 0;
    background:
        repeating-linear-gradient(
            87deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 41px,
            transparent 41px,
            transparent 80px,
            rgba(0, 0, 0, 0.03) 80px,
            rgba(0, 0, 0, 0.03) 81px,
            transparent 81px
        );
    pointer-events: none;
}

/* Occasional spark animation on rivets */
@keyframes rivet-spark {
    0%, 100% { box-shadow:
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.8); }
    50% { box-shadow:
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 200, 0, 0.8); }
}

.band-description:hover::before,
.band-description:hover::after {
    animation: rivet-spark 0.5s ease-out;
}

/* War Machine Container */
.band-members {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 40px 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
}

/* Central Machine Core */
.band-members::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, transparent 70%);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    animation: core-pulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes core-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 0, 0, 0);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Machine Component Cards */
.member {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #333;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(
        20px 0%,
        100% 0%,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        0% 100%,
        0% 20px
    );
    z-index: 1;
}

.member::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF0000, #8B0000, #FF0000);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.member:hover::before {
    opacity: 1;
    animation: border-rotate 2s linear infinite;
}

@keyframes border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Member Photo Container - Machine Part */
.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 0, 0, 0.03) 2px,
            rgba(255, 0, 0, 0.03) 4px
        );
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostrar imagen completa sin recortar */
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.3s ease;
}

.member:hover .member-photo img {
    filter: grayscale(50%) contrast(1.4) saturate(1.5);
    transform: scale(1.05);
}

/* Gear/Component Indicator */
.member-photo::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: 3px solid #FF0000;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, #FF0000 41%, #FF0000 45%, transparent 46%);
    animation: gear-spin 4s linear infinite;
}

.member:hover .member-photo::after {
    animation-duration: 1s;
}

@keyframes gear-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Power Level Meter */
.member-photo::before {
    content: "PWR";
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #FF0000;
    color: #FF0000;
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    z-index: 2;
}

/* Member Info Panel */
.member h3 {
    padding: 15px 20px 5px;
    margin: 0;
    font-size: 1.4em;
    color: #fff;
    background: linear-gradient(90deg, #FF0000 0%, transparent 100%);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.member h3::after {
    content: "◆";
    position: absolute;
    right: 20px;
    color: #FF0000;
    animation: blink 1s linear infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.member p {
    padding: 5px 20px 20px;
    margin: 0;
    color: #999;
    font-family: monospace;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Connection Lines (Pseudo Elements) */
.band-members > .member:nth-child(1)::after,
.band-members > .member:nth-child(2)::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, #FF0000 0%, transparent 100%);
    transform: translateX(-50%);
}

.band-members > .member:nth-child(3)::before,
.band-members > .member:nth-child(4)::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: linear-gradient(0deg, #FF0000 0%, transparent 100%);
    transform: translateX(-50%);
}

/* Sparks Animation - COMMENTED OUT due to conflict with HTML badge */
/*
@keyframes spark {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

.member:hover::after {
    content: "⚡";
    position: absolute;
    top: 50%;
    left: 50%;
    color: #FFD700;
    font-size: 30px;
    animation: spark 0.5s ease-out;
    pointer-events: none;
}
*/

/* Responsive Design */
@media (max-width: 768px) {
    .band-members {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .band-members::before {
        display: none;
    }

    .member-photo {
        height: 250px;
    }
}

/* Status Indicators - REMOVED: Now using HTML badge in member-carousel.css */
.member {
    position: relative;
}

/* COMMENTED OUT - Using HTML badge instead
.member::after {
    content: "ONLINE";
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 1px;
    animation: status-blink 2s linear infinite;
}

.member:hover::after {
    content: "ACTIVE";
    border-color: #FF0000;
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    animation: none;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
*/

/* Machine Steam Effect */
.band-section {
    position: relative;
    overflow: hidden;
}

.band-section::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    right: -100px;
    height: 200px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    animation: steam 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes steam {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-50px); opacity: 1; }
}