/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f1eb;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    background-color: #2c2c2c;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&q=80&w=2000');
    color: #f4f1eb;
}

body.dark-mode header {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-mode nav a {
    color: #f4f1eb;
}

body.dark-mode nav a:hover {
    color: #f0a500;
}

body.dark-mode section {
    background-color: rgba(51, 51, 51, 0.9);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

body.dark-mode section h2 {
    color: #f4f1eb;
    border-bottom-color: #f0a500;
}

/* Header */
header {
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #f0a500;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

section {
    background-color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    backdrop-filter: blur(5px);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

section h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    border-bottom: 2px solid #f0a500;
    padding-bottom: 0.5rem;
    transition: color 0.3s, border-bottom-color 0.3s;
}

/* Gecko Info */
.gecko-info {
    background-color: rgba(249, 249, 249, 0.8);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 5px solid #f0a500;
}

body.dark-mode .gecko-info {
    background-color: rgba(68, 68, 68, 0.8);
    color: #eee;
}

/* Supply List */
.supply-list {
    list-style: none;
    padding: 0;
}

.supply-list li {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .supply-list li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.price-link {
    background-color: #f0a500;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.price-link:hover {
    background-color: #d49200;
    transform: scale(1.05);
}

body.dark-mode .price-link {
    background-color: #f0a500;
    color: #222;
}

body.dark-mode .price-link:hover {
    background-color: #ffb700;
}

/* Theme Toggle Button */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #f0a500;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 10px 0;
    }

    .theme-switch-wrapper {
        top: 10px;
        right: 10px;
    }
}
