/* ===== MINECRAFT THEME CSS - CARD LAYOUT ===== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--theme-color, #2b1d0e);
    color: var(--text-color, #fff);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Pixelated overlay texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.15) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.15) 3px),
                      repeating-linear-gradient(90deg, rgba(0,0,0,0.15) 0px, transparent 1px, transparent 2px, rgba(0,0,0,0.15) 3px);
    pointer-events: none;
    z-index: 9999;
}

/* Background video/image */
.bio-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    filter: brightness(0.6);
    image-rendering: pixelated;
}

.bio-background video,
video.bio-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    object-fit: cover;
    pointer-events: none;
    filter: brightness(0.6);
}

/* ===== CARD LAYOUT ===== */
.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
    position: relative;
}

#tilt-container {
    width: 340px;
    max-width: 100%;
}

.profile-main-card {
    background: rgba(139, 139, 139, 0.95);
    border: 4px solid #000;
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.4),
        4px 4px 0px rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 0;
    position: relative;
}

.profile-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    pointer-events: none;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 96px;
    height: 96px;
    border: 4px solid #000;
    box-shadow: 
        inset 2px 2px 0px rgba(0, 0, 0, 0.5),
        inset -2px -2px 0px rgba(255, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
    background-color: #555;
}

.profile-username {
    font-size: 16px;
    color: var(--accent-color, #55ff55);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.mc-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mc-badge {
    font-size: 8px;
    padding: 4px 8px;
    background: var(--badge-color, #ffff00);
    color: #000;
    border: 2px solid #000;
    box-shadow: inset -1px -1px 0 rgba(0,0,0,0.4), inset 1px 1px 0 rgba(255,255,255,0.3);
    font-weight: bold;
    text-transform: uppercase;
}

.profile-bio {
    font-size: 10px;
    line-height: 1.6;
    color: var(--text-color, #fff);
    text-shadow: 1px 1px 0 #000;
    word-wrap: break-word;
    margin-bottom: 15px;
}

/* ===== ABOUT CARD ===== */
.about-card {
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid var(--accent-color, #55ff55);
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 
        inset 1px 1px 0 rgba(85, 255, 85, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.about-card h3 {
    font-size: 12px;
    color: var(--accent-color, #55ff55);
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 10px;
    text-align: center;
}

.about-card p {
    font-size: 9px;
    line-height: 1.6;
    color: var(--text-color, #fff);
    text-shadow: 1px 1px 0 #000;
}

/* ===== ICON ROW ===== */
.icon-row-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.mc-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.mc-icon-link:hover {
    transform: scale(1.1);
}

.mc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #555;
    box-shadow: 
        inset -2px -2px 0 rgba(0,0,0,0.5),
        inset 2px 2px 0 rgba(255,255,255,0.1);
    margin-bottom: 6px;
}

.mc-icon:hover {
    border-color: var(--accent-color, #55ff55);
    box-shadow: 0 0 calc(12px * var(--glow-opacity, 0.8)) var(--accent-color, #55ff55);
}

.mc-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color, #55ff55);
}

.mc-icon-label {
    font-size: 7px;
    color: var(--text-color, #fff);
    text-shadow: 1px 1px 0 #000;
    text-align: center;
}

/* ===== LINKS CARD ===== */
.links-card {
    position: relative;
    z-index: 1;
}

.bio-link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--button-color, #8b8b8b);
    color: var(--text-color, #fff);
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
    border: 4px solid #000;
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.3),
        inset -2px -2px 0px rgba(0, 0, 0, 0.3),
        0 4px 0px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    cursor: pointer;
    position: relative;
    text-shadow: 2px 2px 0 #000;
}

.bio-link-btn:hover {
    background: var(--accent-color, #55ff55);
    color: #000;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    transform: translateY(2px);
    box-shadow: 
        inset 2px 2px 0px rgba(255, 255, 255, 0.4),
        inset -2px -2px 0px rgba(0, 0, 0, 0.4),
        0 2px 0px rgba(0, 0, 0, 0.5);
}

.bio-link-btn:active {
    transform: translateY(4px);
    box-shadow: 
        inset 2px 2px 0px rgba(0, 0, 0, 0.4),
        inset -2px -2px 0px rgba(255, 255, 255, 0.2);
}

/* ===== FOOTER ===== */
.mc-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    border-top: 4px solid #555;
    padding: 8px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.6);
}

.mc-footer-content {
    font-size: 8px;
    color: var(--text-color, #fff);
    text-shadow: 1px 1px 0 #000;
}

.mc-footer-content a {
    color: var(--accent-color, #55ff55);
    text-decoration: none;
    transition: color 0.2s;
}

.mc-footer-content a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-color, #55ff55);
}

/* ===== MINECRAFT HUD (Hearts, Hunger, XP Bar) ===== */
.mc-hud {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.mc-hud-top {
    display: flex;
    justify-content: space-between;
    width: 400px;
    max-width: 90vw;
}

.mc-hearts {
    display: flex;
    gap: 2px;
}

.mc-heart {
    width: 18px;
    height: 18px;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-image: url('/login_system/assets/MCHeart.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mc-heart.empty {
    filter: brightness(0.25) saturate(0);
}

.mc-hunger {
    display: flex;
    gap: 2px;
}

.mc-food {
    width: 18px;
    height: 18px;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background-image: url('/login_system/assets/MCHunger.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mc-food.empty {
    filter: brightness(0.25) saturate(0);
}

.mc-xp-bar-container {
    width: 400px;
    max-width: 90vw;
    height: 14px;
    background: #000;
    border: 2px solid #000;
    box-shadow: 
        inset 0 0 0 1px #555,
        0 2px 0 #111;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
}

.mc-xp-bar-fill {
    height: 100%;
    background: linear-gradient(to bottom, 
        #b4ff00 0%, 
        #7cfc00 20%,
        #32cd32 50%,
        #228b22 80%,
        #1a6b1a 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: width 0.3s ease;
    image-rendering: pixelated;
    position: relative;
}

.mc-xp-level {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #7cfc00;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
    font-weight: bold;
    z-index: 1;
}

/* ===== AUDIO WIDGET ===== */
.audio-widget {
    position: fixed;
    bottom: 50px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid var(--accent-color, #55ff55);
    padding: 10px;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.audio-widget audio {
    width: 200px;
    height: 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
    body {
        font-size: 14px;
    }

    #tilt-container {
        width: 100%;
        max-width: 340px;
    }

    .profile-main-card {
        padding: 15px;
    }

    .profile-username {
        font-size: 14px;
    }

    .profile-bio {
        font-size: 9px;
    }

    .bio-link-btn {
        font-size: 9px;
        padding: 12px;
    }

    .mc-icon {
        width: 40px;
        height: 40px;
    }

    .mc-icon svg {
        width: 28px;
        height: 28px;
    }

    .audio-widget {
        bottom: 40px;
        right: 10px;
    }

    .audio-widget audio {
        width: 150px;
    }

    .mc-hud-top {
        width: 300px;
    }

    .mc-xp-bar-container {
        width: 300px;
    }

    .mc-heart {
        width: 14px;
        height: 14px;
    }

    .mc-food {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .profile-main-card {
        padding: 12px;
    }

    .profile-username {
        font-size: 12px;
    }

    .profile-bio {
        font-size: 8px;
    }

    .bio-link-btn {
        font-size: 8px;
        padding: 10px;
    }

    .icon-row-container {
        gap: 10px;
    }

    .mc-icon {
        width: 36px;
        height: 36px;
    }

    .mc-icon svg {
        width: 24px;
        height: 24px;
    }

    .mc-hud-top {
        width: 250px;
    }

    .mc-xp-bar-container {
        width: 250px;
    }

    .mc-heart {
        width: 12px;
        height: 12px;
    }

    .mc-food {
        width: 12px;
        height: 12px;
    }

    .mc-xp-level {
        font-size: 8px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}
