@import url('minecraft-webfont.css');

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

body {
    font-family: 'Minecraft', 'Courier New', monospace;
    background: #1e1e1e;
    min-height: 100vh;
    color: #e0e0e0;
    padding: 0;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%),
                url('../icons/The_Copper_Age_Key_Art.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.launcher-header {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 15px 30px;
    border-bottom: 2px solid #3d3d3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.launcher-logo {
    font-size: 18px;
    color: #4CAF50;
    font-weight: bold;
    text-shadow: 2px 2px 0 #2d5016;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.minecraft-panel {
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: 100%;
}

.launcher-panel {
    background: #323232;
    border-radius: 4px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.profile-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.profile-left {
    flex: 1;
}

.profile-right {
    width: 300px;
    flex-shrink: 0;
}

.skin-selector-section {
    background: #3a3a3a;
    border-radius: 4px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.title {
    font-family: 'Minecraft', 'Courier New', monospace;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: left;
    font-weight: normal;
}

.subtitle {
    font-family: 'Minecraft', 'Courier New', monospace;
    color: #FFAA00;
    font-size: 20px;
    text-shadow: 2px 2px 0px #2A2A00;
    margin-bottom: 15px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.username {
    color: #55FFFF;
    font-weight: bold;
    text-shadow: 2px 2px 0px #153F3F;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.role-user {
    background: #AAAAAA;
    color: #1a1a1a;
}

.role-admin {
    background: #FF5555;
    color: white;
    text-shadow: 1px 1px 0px #3F1515;
}

.description {
    text-align: center;
    line-height: 1.8;
    margin: 20px 0;
    color: #e0e0e0;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    font-family: 'Minecraft', 'Courier New', monospace;
    padding: 12px 24px;
    border: 3px solid #000;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: #5cb85c;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.btn-primary:hover {
    background: #6fc96f;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(92, 184, 92, 0.4);
}

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

.btn-secondary:hover {
    background: #7d8891;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: #d9534f;
    color: white;
}

.btn-danger:hover {
    background: #e06560;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(217, 83, 79, 0.4);
}

.btn-logout {
    background: transparent;
    border: 2px solid #d9534f;
    color: #d9534f;
}

.btn-logout:hover {
    background: #d9534f;
    color: white;
}

.form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFAA00;
    text-shadow: 2px 2px 0px #2A2A00;
}

.input-field {
    font-family: 'Minecraft', 'Courier New', monospace;
    width: 100%;
    padding: 12px 15px;
    background: #1e1e1e;
    border: 1px solid #444;
    border-radius: 2px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #5cb85c;
    background: #252525;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.2);
}

.link-text {
    text-align: center;
    margin-top: 15px;
}

.link-text a {
    color: #55FFFF;
    text-decoration: none;
    text-shadow: 1px 1px 0px #153F3F;
}

.link-text a:hover {
    color: #7FFFFF;
}

.profile-container {
    margin: 20px 0;
}

.profile-section {
    background: #3a3a3a;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 20px;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field:last-child {
    margin-bottom: 0;
}

.profile-field label {
    color: #999;
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field .value {
    color: #fff;
    font-size: 15px;
    background: #2a2a2a;
    padding: 10px 12px;
    border-radius: 2px;
    border: 1px solid #444;
}

.admin-panel {
    background: rgba(255, 85, 85, 0.1);
    border: 2px solid #FF5555;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.flag-display {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #FFD700;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
}

.flag-text {
    font-family: 'Courier New', monospace;
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 0px #3F3F00;
    word-break: break-all;
}

.success-message {
    background: rgba(85, 255, 85, 0.2);
    border: 2px solid #55FF55;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    color: #55FF55;
}

.error-message {
    background: rgba(255, 85, 85, 0.2);
    border: 2px solid #FF5555;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    color: #FF5555;
}

.icon-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.icon-container img {
    max-width: 200px;
    image-rendering: pixelated;
}

.skin-preview {
    width: 120px;
    height: 120px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.skin-preview::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #5cb85c 25%, transparent 25%, transparent 75%, #5cb85c 75%, #5cb85c),
                linear-gradient(135deg, #5cb85c 25%, transparent 25%, transparent 75%, #5cb85c 75%, #5cb85c);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    opacity: 0.3;
}

.skin-preview-text {
    font-size: 48px;
    color: #5cb85c;
    z-index: 1;
}

.skin-preview-3d {
    width: 200px;
    height: 300px;
    margin: 0 auto 20px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-preview-3d canvas {
    display: block;
    image-rendering: pixelated;
}

.skin-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.skin-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skin-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.skin-thumbnail:hover {
    border-color: #5cb85c;
    transform: scale(1.05);
}

.skin-thumbnail.active {
    border-color: #5cb85c;
    box-shadow: 0 0 10px rgba(92, 184, 92, 0.5);
}

.skin-history {
    max-height: 200px;
    min-height: 50px;
    overflow-y: auto;
    background: #2a2a2a;
    border-radius: 4px;
    padding: 10px;
}

.skin-history::-webkit-scrollbar {
    width: 6px;
}

.skin-history::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 3px;
}

.skin-history::-webkit-scrollbar-thumb {
    background: #5cb85c;
    border-radius: 3px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-bottom: 5px;
    background: #323232;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #3d3d3d;
}

.history-item img {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    image-rendering: pixelated;
}

.history-item-info {
    flex: 1;
    font-size: 12px;
    color: #999;
}

.info-box {
    background: #3a3a3a;
    border-left: 3px solid #5cb85c;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 2px;
    line-height: 1.6;
}

.profile-card {
    background: #3a3a3a;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #444;
}

.profile-title {
    font-size: 20px;
    color: #fff;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.code-block {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #555;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    color: #55FF55;
}

.welcome-screen {
    text-align: center;
    padding: 40px 20px;
}

.welcome-screen .title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #5cb85c;
    text-shadow: 2px 2px 0 #2d5016;
}

.welcome-screen .icon-container {
    margin: 20px 0;
}

.launch-button {
    padding: 15px 40px;
    font-size: 16px;
    margin: 10px;
}

@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-right {
        width: 100%;
    }
    
    .launcher-panel {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .minecraft-panel, .launcher-panel {
        padding: 20px;
        margin: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .launcher-header {
        padding: 10px 15px;
    }
    
    .skin-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}
