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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #ffd700;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.calculator-section {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background-color: #3a3a3a;
    border: none;
    border-radius: 5px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn:hover {
    background-color: #4a4a4a;
}

.tab-btn.active {
    background-color: #ffd700;
    color: #1a1a1a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 1.1rem;
    color: #ffd700;
}

input, select {
    padding: 0.75rem;
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: #ffd700;
}

.calculate-btn {
    padding: 1rem;
    background-color: #ffd700;
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background-color: #ffed4a;
    transform: translateY(-2px);
}

.result {
    background-color: #3a3a3a;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.result p {
    font-size: 1.2rem;
}

.result span {
    color: #ffd700;
    font-weight: bold;
}

.main-header {
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    border-bottom: 2px solid #c7a96c;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-link, .title-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover, .title-link:hover {
    opacity: 0.8;
}

.title-link h1 {
    text-decoration: none;
    color: #c7a96c;
}

.main-header a.title-link {
    text-decoration: none;
}

.main-header a.title-link:hover {
    text-decoration: none;
}

.logo {
    max-width: 120px;
    height: auto;
}

.logo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.main-header h1 {
    color: #c7a96c;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    white-space: nowrap;
}

.main-header nav {
    display: flex;
    align-items: center;
}

.main-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
}

.main-header nav a {
    color: #c7a96c;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

.main-header nav a:hover {
    color: #e6d5b8;
    text-shadow: 0 0 10px rgba(199, 169, 108, 0.5);
    background: rgba(199, 169, 108, 0.1);
}

.desktop-nav {
    flex: 1;
    margin-left: 1rem;
}

.desktop-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: #c7a96c;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: #ffd700;
}

@media (max-width: 1200px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .desktop-nav {
        width: 100%;
        margin: 1rem 0 0 0;
    }

    .desktop-nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .desktop-nav a {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    .main-header h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .calculator-section {
        padding: 1rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 0.3rem;
    }

    .main-header h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    .logo {
        max-width: 80px;
    }

    /* Hide navigation on mobile */
    .main-header nav {
        display: none;
    }
}

/* Random Build Generator Styles */
.generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.generator-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.build-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-group {
    background: rgba(20, 20, 20, 0.8);
    padding: 15px;
    border-radius: 4px;
}

.option-group h3 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.slider-group {
    margin-top: 10px;
}

.slider-label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: #333;
    border-radius: 4px;
}

.feature-list {
    list-style-type: none;
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.feature-list li {
    position: relative;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
    line-height: 1.4;
}

.feature-list li::before {
    content: "•";
    color: #ffd700;
    position: absolute;
    left: -1.2rem;
    top: 0;
}

.about-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.about-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(5px);
}

.about-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.main-footer {
    background: linear-gradient(to top, #000000, #1a1a1a);
    border-top: 2px solid #c7a96c;
    color: #c7a96c;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #c7a96c;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #c7a96c;
    padding-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #c7a96c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e6d5b8;
    text-shadow: 0 0 10px rgba(199, 169, 108, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(199, 169, 108, 0.3);
    font-size: 0.9rem;
    color: #8b7355;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}