/* ============================================
   CHARACTER PAGE STYLES - MARNYL Wiki
   Same style as main page - brutal & pink
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar - MARNYL Style */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    border-radius: 0 !important;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 4px solid #ff69b4;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border: 3px solid #000;
    border-radius: 0 !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #ff69b4 #000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ff69b4;
    color: #000;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main */
.main {
    padding: 20px 0;
}

.title {
    font-size: clamp(3rem, 8vw, 5rem);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #000;
}

.subtitle {
    text-align: center;
    color: #000;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Character Section */
.character-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* Preview Container */
.preview-container {
    background: #fff;
    border: 6px solid #000;
}

.character-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.character-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.character-preview .loading {
    color: #ff69b4;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.preview-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #000;
    border-top: 4px solid #ff69b4;
}

.control-btn {
    padding: 12px 24px;
    border: 3px solid #ff69b4;
    background: transparent;
    color: #ff69b4;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.15s ease;
}

.control-btn:hover {
    background: #ff69b4;
    color: #000;
}

/* Character Info */
.character-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #fff;
    border: 4px solid #000;
    padding: 25px;
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    border-bottom: 4px solid #ff69b4;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #ff69b4;
    border: 3px solid #000;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-name {
    flex: 1;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 900;
}

.backstory {
    color: #000;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #000;
}

.section-subtitle {
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 600;
}

/* Customization Section */
.customization-section {
    margin-bottom: 60px;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skin-card {
    background: #fff;
    border: 4px solid #000;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
}

.skin-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #000;
}

.skin-card.active {
    border-color: #00d4ff;
    border-width: 6px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.skin-card.locked {
    opacity: 0.7;
}

.skin-card.locked .skin-preview {
    filter: grayscale(100%);
}

.skin-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-bottom: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.skin-info {
    padding: 15px;
    text-align: center;
}

.skin-info h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.skin-info p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}

.skin-status {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #ff4444;
    color: #fff;
    border: 2px solid #000;
}

.skin-status.unlocked {
    background: #00cc66;
}

/* Weapons Section */
.weapons-section {
    margin-bottom: 60px;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.weapon-card {
    background: #fff;
    border: 4px solid #000;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
}

.weapon-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0 #000;
}

.weapon-card.active {
    background: #ffd700;
}

.weapon-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #444 100%);
    border-bottom: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.weapon-info {
    padding: 12px;
    text-align: center;
}

.weapon-info h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.weapon-info p {
    font-size: 0.8rem;
    color: #555;
}

/* Responsive */
@media (max-width: 1200px) {
    .weapons-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .character-section {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weapons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .skins-grid {
        grid-template-columns: 1fr;
    }

    .weapons-grid {
        grid-template-columns: 1fr;
    }
}

/* Weapon Modal */
.weapon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.weapon-modal.hidden {
    display: none;
}

.weapon-modal-content {
    background: #fff;
    border: 6px solid #000;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
    font-weight: 900;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #ff69b4;
}

.modal-header {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #ff69b4;
    border-bottom: 4px solid #000;
}

.modal-preview {
    width: 120px;
    height: 120px;
    background: #2a2a2a;
    border: 4px solid #000;
    flex-shrink: 0;
}

.modal-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title-section h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.modal-title-section p {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.modal-stats h3,
.modal-upgrades h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #ff69b4;
}

.stat-row,
.upgrade-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.stat-label,
.upgrade-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.stat-val {
    font-weight: 900;
    font-size: 1.1rem;
    color: #000;
}

.upgrade-val {
    font-weight: 900;
    font-size: 1.1rem;
    color: #00cc66;
}

@media (max-width: 500px) {
    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}
