/* General Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    /* Add padding to the bottom so content isn't hidden by the fixed disclaimer */
    padding-bottom: 50px; 
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a, .cart-icon a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4CAF50;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Placeholder for your large keyboard hero image */
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.9)), url('mainPage.png') center/cover;
    border-bottom: 1px solid #333;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #aaaaaa;
    margin-bottom: 40px;
    max-width: auto;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 60px 50px;
    background-color: #1a1a1a;
}

.feature-card {
    text-align: center;
    max-width: 300px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #4CAF50;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 50px;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
}

.testimonial-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.testimonial {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    border: 1px solid #333;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background-color: #555;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.testimonial p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background-color: #0a0a0a;
    border-top: 1px solid #333;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

/* Global Disclaimer Banner */
.disclaimer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ff9800; /* High visibility warning color */
    color: #000;
    text-align: center;
    padding: 12px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

/* Builder Layout */
.builder-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    gap: 50px;
    padding: 0 20px;
}

.builder-preview {
    flex: 1;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
}

.preview-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background-color: #333; /* Placeholder background */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.builder-options {
    flex: 1;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

.option-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.option-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.build-select {
    padding: 12px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1rem;
}

.price-summary {
    margin: 30px 0;
    padding: 20px;
    background: #222;
    border-radius: 4px;
    text-align: right;
    border-left: 4px solid #4CAF50;
}

/* Cart Layout */
.cart-container {
    max-width: 800px;
    margin: 50px auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item-details h4 {
    color: #4CAF50;
    margin-bottom: 5px;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: #aaa;
}

.remove-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.remove-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Custom Keycap Toggle Buttons */
.radio-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.radio-toggle-group input[type="radio"] {
    display: none; /* Hide standard radio circles */
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    color: #ccc;
    transition: 0.3s;
}

/* When a radio button is checked, style the label next to it */
.radio-toggle-group input[type="radio"]:checked + .toggle-btn {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #fff;
    font-weight: bold;
}

.small-toggle .toggle-btn {
    padding: 6px;
    font-size: 0.85rem;
}

.sub-options {
    background: #222;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #444;
}

/* Color Pickers */
.color-picker-container {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.color-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-box label {
    font-size: 0.85rem;
    color: #aaa;
}

.color-box input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

/* Explore Page Layout */
.explore-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.explore-header {
    text-align: center;
    margin-bottom: 50px;
}

.explore-header h2 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.explore-header p {
    color: #aaa;
    font-size: 1.1rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.explore-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.explore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #4CAF50;
}

.explore-card img {
    width: 100%;
    height: 200px;
    background-color: #333; /* Placeholder color */
    object-fit: cover;
}

.card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-info p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.explore-card .btn {
    text-align: center;
    width: 100%;
    margin: 0;
}

/* Checkout Layout */
.checkout-container {
    display: flex;
    max-width: 1000px;
    margin: 50px auto;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
}

.checkout-form-section {
    flex: 2;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
}

.checkout-summary-section {
    flex: 1;
    background: #222;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    position: sticky;
    top: 100px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

.checkout-form-section h2, .checkout-summary-section h2 {
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-mini-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #aaa;
}

.checkout-totals p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ccc;
}

.checkout-totals h3 {
    display: flex;
    justify-content: space-between;
    color: #fff;
}

/* Keycap Zones */
.zone-box {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #4CAF50;
}

.zone-box h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* Interactive Visual Keyboard */
.visual-keyboard {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: auto;
}

.keyboard-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.key {
    background-color: #2a2a2a; /* Default Midnight Black */
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    flex-grow: 1; /* Makes keys stretch to fit row */
}

/* Specific Key Widths to look realistic */
.key-space { flex-grow: 15; }
.key-shift, .key-enter, .key-caps, .key-tab, .key-bksp { flex-grow: 3; }

.key:hover {
    border-color: #888;
}

/* When a user clicks a key to select it for painting */
.key.selected {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
    transform: translateY(-2px);
    z-index: 2;
}

.styling-panel {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

/* Dropdown Menu Enhancements */
.build-select optgroup {
    background-color: #111;
    color: #aaa;
    font-style: normal;
    font-weight: bold;
    padding: 5px;
}

.highlight-option {
    background-color: #1e3320; /* Subtle dark green tint */
    color: #4CAF50;
    font-weight: bold;
}

/* Layout Spacers for 100% Keyboard */
.key-spacer {
    width: 30px; /* Space between main board, arrows, and numpad */
    flex-shrink: 0;
}
.key-spacer.half {
    width: 15px; /* Smaller space between F-key clusters */
}
.key-numpad-zero {
    flex-grow: 7; /* Stretches the Numpad 0 across two standard key widths */
}

