/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #0d0d0d;
    min-height: 100%;
}

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 115, 85, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    color: #c4a882;
    min-height: 100vh;
    overflow-x: auto;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.95) 0%, rgba(13, 13, 13, 0.98) 100%);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #8b7355;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b7355 50%, transparent 100%);
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(196, 168, 130, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #c4a882;
    text-shadow: 0 2px 8px rgba(196, 168, 130, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.controls {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.btn-primary {
    background: linear-gradient(145deg, #8b7355, #6b5a42);
    color: #f4f1e8;
    border-color: #8b7355;
}

.btn-primary:hover {
    background: linear-gradient(145deg, #a08866, #8b7355);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-secondary {
    background: linear-gradient(145deg, #4a6741, #3a5233);
    color: #f4f1e8;
    border-color: #4a6741;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #5a7851, #4a6741);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 103, 65, 0.3);
}

.btn-danger {
    background: linear-gradient(145deg, #6b3333, #5a2828);
    color: #f4f1e8;
    border-color: #6b3333;
}

.btn-danger:hover {
    background: linear-gradient(145deg, #7b4343, #6b3333);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 51, 51, 0.3);
}

.btn-warning {
    background: linear-gradient(145deg, #8b6914, #6b5011);
    color: #f4f1e8;
    border-color: #8b6914;
}

.btn-warning:hover {
    background: linear-gradient(145deg, #a07a18, #8b6914);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 105, 20, 0.3);
}

/* Main Content */
.main {
    flex: 1;
    padding: 1rem;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Class Selection */
.class-selection {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.class-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.class-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    border: 2px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    backdrop-filter: blur(5px);
}

.class-tab:hover {
    border-color: rgba(139, 115, 85, 0.6);
    background: linear-gradient(145deg, rgba(52, 52, 52, 0.8), rgba(36, 36, 36, 0.9));
    transform: translateY(-2px);
}

.class-tab.active {
    border-color: #8b7355;
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.2), rgba(107, 90, 66, 0.3));
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.2);
}

.class-tab-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.1), rgba(107, 90, 66, 0.2));
}

.class-tab-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.class-tab-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c4a882;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Perk Tree */
.perk-tree {
    margin-bottom: 1rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sections {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    min-height: 100%;
    padding: 1rem 0;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.6), rgba(13, 13, 13, 0.8));
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(8px);
}

/* Different widths for different section types */
.section[data-section-id="core"],
.section[data-section-id="gear"] {
    flex: 2;
    max-width: 400px;
}

.section[data-section-id="team"],
.section[data-section-id="signature"] {
    flex: 1;
    max-width: 200px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b7355 50%, transparent 100%);
}

.section-columns {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
}

.column-title {
    font-size: 0.75rem;
    color: rgba(196, 168, 130, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* Perk Tiles */
.perk-tile {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    border: 2px solid rgba(139, 115, 85, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(5px);
    margin-bottom: 0.5rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.perk-tile:hover {
    border-color: #8b7355;
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.2), rgba(107, 90, 66, 0.3));
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(139, 115, 85, 0.3);
}

.perk-tile.selected {
    border-color: #5dade2;
    background: linear-gradient(145deg, rgba(93, 173, 226, 0.3), rgba(74, 155, 189, 0.4));
    box-shadow: 0 0 20px rgba(93, 173, 226, 0.4);
}

.perk-tile.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.perk-tile.disabled:hover {
    transform: none;
    border-color: rgba(139, 115, 85, 0.4);
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
}

.perk-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 13, 13, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #8b7355;
    margin-bottom: 0.2rem;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.perk-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.perk-name {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    color: #c4a882;
    line-height: 1.0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Prestige Perks */
.prestige-perks {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9));
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    margin-top: auto;
}

.prestige-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.3rem;
}

.prestige-subtitle {
    font-size: 0.75rem;
    color: rgba(196, 168, 130, 0.8);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prestige-grid {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.prestige-tile {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    border: 2px solid rgba(139, 115, 85, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(5px);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

.prestige-tile:hover {
    border-color: #8b7355;
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.2), rgba(107, 90, 66, 0.3));
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.prestige-tile.selected {
    border-color: #5dade2;
    background: linear-gradient(145deg, rgba(93, 173, 226, 0.3), rgba(74, 155, 189, 0.4));
    box-shadow: 0 0 16px rgba(93, 173, 226, 0.4);
}

.prestige-tile.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.prestige-tile.disabled:hover {
    transform: none;
    border-color: rgba(139, 115, 85, 0.4);
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
}

.prestige-icon {
    font-size: 1.1rem;
    font-weight: 900;
    color: #8b7355;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: linear-gradient(145deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.98));
    border: 2px solid #8b7355;
    border-radius: 8px;
    padding: 1rem;
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    color: #c4a882;
}

.tooltip-title {
    font-size: 1rem;
    font-weight: 700;
    color: #8b7355;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tooltip-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(196, 168, 130, 0.9);
}

/* Modal */
.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: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(13, 13, 13, 0.98));
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(139, 115, 85, 0.3);
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #8b7355;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #c4a882;
}

.modal-body p {
    color: rgba(196, 168, 130, 0.9);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.url-container {
    display: flex;
    gap: 0.5rem;
}

.url-container input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 4px;
    color: #c4a882;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
}

.url-container input:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 8px rgba(139, 115, 85, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #8b7355;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 4px;
    color: #c4a882;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 8px rgba(139, 115, 85, 0.3);
    background: rgba(42, 42, 42, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(196, 168, 130, 0.5);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 115, 85, 0.3);
}

.report-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 700;
}

.report-status.success {
    background: rgba(74, 103, 65, 0.2);
    border: 1px solid rgba(74, 103, 65, 0.4);
    color: #5a7851;
}

.report-status.error {
    background: rgba(107, 51, 51, 0.2);
    border: 1px solid rgba(107, 51, 51, 0.4);
    color: #7b4343;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 13, 13, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.8);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .sections {
        gap: 1.5rem;
    }
    
    .section[data-section-id="core"],
    .section[data-section-id="gear"] {
        max-width: 350px;
    }
    
    .section[data-section-id="team"],
    .section[data-section-id="signature"] {
        max-width: 180px;
    }
}

@media (max-width: 1200px) {
    .sections {
        gap: 1rem;
    }
    
    .section {
        padding: 1rem 0.75rem;
    }
    
    .section[data-section-id="core"],
    .section[data-section-id="gear"] {
        max-width: 300px;
    }
    
    .section[data-section-id="team"],
    .section[data-section-id="signature"] {
        max-width: 160px;
    }
    
    .perk-tile {
        width: 70px;
        height: 70px;
    }
    
    .perk-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 992px) {
    .main {
        padding: 1rem;
        height: auto;
    }
    
    .perk-tree {
        height: auto;
        overflow: visible;
    }
    
    .sections {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .section {
        max-width: 400px;
        margin-bottom: 2rem;
    }
    
    .section-columns {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .controls {
        justify-content: center;
    }
    
    .class-tabs {
        gap: 0.5rem;
    }
    
    .class-tab {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .class-tab-icon {
        width: 50px;
        height: 50px;
    }
    
    .class-tab-name {
        font-size: 0.8rem;
    }
    
    .section {
        max-width: 100%;
    }
    
    .prestige-grid {
        gap: 0.75rem;
    }
    
    .prestige-tile {
        width: 60px;
        height: 60px;
    }
} 

/* About Section for SEO */
.about-section {
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.08), rgba(107, 90, 66, 0.12));
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.about-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem 0 0;
}

.about-toggle {
    background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.9));
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.about-toggle:hover {
    border-color: #8b7355;
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.2), rgba(107, 90, 66, 0.3));
    transform: scale(1.05);
}

.toggle-icon {
    color: #8b7355;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease;
}

.about-content {
    padding: 0.5rem 1rem 0.75rem 1rem;
    transition: all 0.3s ease;
}

.about-content p {
    margin: 0;
    color: rgba(196, 168, 130, 0.8);
    font-size: 0.75rem;
    line-height: 1.3;
    font-weight: 400;
}

.about-content strong {
    color: #8b7355;
    font-weight: 700;
}

/* Collapsed state */
.about-section.collapsed {
    background: none;
    border: none;
    margin-bottom: 0;
    height: 24px;
}

.about-section.collapsed .about-header {
    padding: 0;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.about-section.collapsed .about-content {
    display: none;
}

.about-section.collapsed .toggle-icon {
    transform: rotate(180deg);
} 
