/*
Theme Name: Wonderful Classic Theme
Author: Grant Fulton
Description: A custom theme for Golden IT website.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: Wonderful-Classic-Theme
*/

/*--------------------------------------------------------------
General Styles
--------------------------------------------------------------*/

body {
    margin: 0;
    background-color: #000;
    font-family: sans-serif;
    color: #D4AF37;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    box-sizing: border-box;
    z-index: 1;
}

.content-container {
    width: 80%;
    max-width: 960px;
    padding: 40px;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-sizing: border-box;
}

.content-container h1,
.content-container h2,
.content-container h3 {
    text-align: center;
}

.niceList {
    list-style-type: disc;
    padding-left: 20px;
    margin: 20px auto;
    max-width: 600px;
}

.niceList li {
    padding: 5px 0;
}

footer {
    text-align: center;
    padding: 10px;
    color: #D4AF37;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    box-sizing: border-box;
}

/*--------------------------------------------------------------
Navigation Styles
--------------------------------------------------------------*/

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
}

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

.site-name {
    font-size: 1.2em;
    color: #D4AF37;
    font-weight: bold;
    margin-left: 10px;
}

.menu-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #D4AF37;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #FFD700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #D4AF37;
    font-size: 1.5em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-container {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        padding: 10px 20px;
    }

    .menu-container.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 10px 0;
    }
}

/*--------------------------------------------------------------
Login Form Styles
--------------------------------------------------------------*/

#login-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 8px;
    z-index: 10;
}

#login-form input {
    margin-bottom: 10px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.login-form label {
    font-weight: bold;
    color: #FFD700;
}

.login-form input {
    padding: 10px;
    border: 1px solid #D4AF37;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #D4AF37;
}

.login-form button {
    background-color: #D4AF37;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #FFD700;
}

/* Login and Registration Styles */
.login-register-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.login-form, .register-form {
    flex: 1;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-form h2, .register-form h2 {
    color: #FFD700;
    margin-bottom: 15px;
}

.login-form label, .register-form label {
    display: block;
    margin-bottom: 5px;
    color: #FFD700;
}

.login-form input, .register-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #D4AF37;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #D4AF37;
}

.login-form button, .register-form button {
    background-color: #D4AF37;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover, .register-form button:hover {
    background-color: #FFD700;
}

.login-register-container .login-form,
.login-register-container .register-form {
    transition: opacity 0.3s ease, pointer-events 0.3s ease;
}

.login-register-container .login-form.grayed-out,
.login-register-container .register-form.grayed-out {
    opacity: 0.5;
    pointer-events: none;
}

/*--------------------------------------------------------------
WooCommerce Styles
--------------------------------------------------------------*/

.woocommerce ul.products li.product {
    list-style: none;
    margin: 0 0 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    text-align: center;
}

.woocommerce ul.products li.product a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product a:hover {
    color: #FFD700;
}

.woocommerce div.product {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.woocommerce button.button {
    background-color: #D4AF37;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce button.button:hover {
    background-color: #FFD700;
}

/* Product Text Styles */
.product h3, /* Product titles */
.product p,  /* Product descriptions or prices */
.product a { /* Product links */
    color: #D4AF37; /* Gold color */
}

/* Optional: Add hover effect for links */
.product a:hover {
    color: #FFD700; /* Lighter gold for hover */
}

/* Checkout Page Styles */
.woocommerce-checkout {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    color: #D4AF37;
}

.woocommerce-checkout h3 {
    color: #FFD700;
}

.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    background-color: rgba(0, 0, 0, 0.9);
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px;
}

.woocommerce-checkout button {
    background-color: #D4AF37;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce-checkout button:hover {
    background-color: #FFD700;
}

/*--------------------------------------------------------------
Toggle Buttons Styles
--------------------------------------------------------------*/

.toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.toggle-buttons .button {
    background-color: #D4AF37;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-buttons .button:hover {
    background-color: #FFD700;
}

/*--------------------------------------------------------------
Category Filter Button Styles
--------------------------------------------------------------*/

.category-btn {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1em;
}

.category-btn.active,
.category-btn:hover {
    background-color: #D4AF37;
    color: #000;
}

/*--------------------------------------------------------------
Responsive Styles
--------------------------------------------------------------*/

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-container {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        padding: 10px 20px;
    }

    .menu-container.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 10px 0;
    }
}