/* style.css
  This file contains all the styles for the website with the new animated brand navigation.
*/

/* Basic Reset and Font Setup */
html {
    scroll-behavior: auto; /* No smooth scroll needed */
}

body {
    background-color: #111;
    color: #eee;
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
}

body.home-page {
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden;
}

/* Header Styling */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid #00FF00;
    z-index: 100;
    box-sizing: border-box;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 1.5em;
    color: #00FF00;
    text-shadow: 2px 2px #000;
}

.main-nav a {
    color: #eee;
    text-decoration: none;
    margin-left: 25px;
    font-size: 1em;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #00FF00;
}

/* Main Container for the SmokéDex - Now a Grid */
.dex-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Card Styling */
.brand-card {
    opacity: 1; /* Ensure cards are visible */
    transform: none; /* Reset transform */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 3px solid transparent; /* Start with a transparent border */
}

.brand-card:hover {
    transform: translateY(-5px);
}

.card-content {
    background-color: #222;
    border: 3px solid #00FF00; /* Default border color */
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3); /* Default shadow color */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center content */
    text-align: center;
    padding: 20px;
    gap: 15px;
    height: 100%;
    box-sizing: border-box;
}

/* Sprite (Image) Styling */
.sprite-link {
    display: block;
    text-decoration: none;
}
.sprite-container {
    flex-shrink: 0;
    background-color: transparent;
    transition: transform 0.3s ease;
}
.sprite-link:hover .sprite-container {
    transform: scale(1.05);
}

.sprite-image {
    width: 120px; /* Slightly smaller for grid */
    height: 120px;
    image-rendering: pixelated;
    object-fit: contain;
}

/* Brand Info Styling */
.info-container {
    flex-grow: 1;
    text-align: center;
}

.brand-name-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.brand-name-link:hover {
    opacity: 0.8;
}

.brand-name {
    color: #00FF00; /* Default text color */
    font-size: 1.5em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    white-space: normal; /* Allow text to wrap */
    word-break: break-word; /* Break long words if necessary */
}

.brand-data {
    font-size: 0.8em;
    line-height: 1.5;
    margin-bottom: 8px;
}

.brand-data strong {
    color: #00FF00; /* Default strong color */
}

/* Merch Button Styling */
.merch-button {
    display: inline-block;
    background-color: #00FF00; /* Default background */
    color: #111;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
    border: 2px solid #00FF00; /* Default border */
    transition: background-color 0.3s, color 0.3s;
}

.merch-button:hover {
    background-color: #111;
    color: #00FF00; /* Default hover text */
}

/* --- MOBILE MENU STYLES --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #eee;
    margin: 5px 0;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #eee;
    font-size: 3em;
    cursor: pointer;
    font-family: sans-serif;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.mobile-nav a {
    color: #eee;
    text-decoration: none;
    font-size: 2em;
    transition: color 0.3s ease;
}
.mobile-nav a:hover {
    color: #00FF00;
}

/* --- STYLES FOR STATIC PAGES --- */
body.static-page {
    overflow-y: auto;
    overflow-x: hidden;
}
.static-page-container {
    padding: 40px 30px;
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    text-align: left;
    margin-top: 20px;
}
.static-page-container h1 {
    font-size: 1.6em; /* Slightly smaller font size */
    color: #00FF00;
    margin-bottom: 20px;
    white-space: normal; /* Allow text to wrap */
    word-break: break-word; /* Break long words if necessary */
}
.static-page-container p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}
.static-page-container a {
    color: #00FF00;
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}
.static-page-container a:hover {
    text-shadow: 0 0 8px #00FF00;
}
.brand-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.brand-page-sprite img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.retailer-list {
    list-style: none;
    padding: 0;
    border-top: 2px solid #444;
    margin-top: 30px;
}
.retailer-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 2px solid #444;
}
.retailer-name {
    color: #fff;
    text-decoration: none;
}

.retailer-name:hover {
    text-decoration: underline;
}
.retailer-location {
    color: #aaa;
}

/* --- BRAND THEME STYLES --- */

/* Captain's Chronic Theme (Navy Blue) */
.theme-captains-chronic .card-content,
.theme-captains-chronic .merch-button {
    border-color: #2A3B49;
    box-shadow: 0 0 15px rgba(42, 59, 73, 0.5);
}
.theme-captains-chronic .brand-name,
.theme-captains-chronic .brand-data strong {
    color: #6A8DAB;
}
.theme-captains-chronic .merch-button {
    background-color: #2A3B49;
    color: #eee;
}
.theme-captains-chronic .merch-button:hover {
    background-color: #111;
    color: #6A8DAB;
}
.theme-captains-chronic .static-page-container h1,
.theme-captains-chronic .static-page-container a {
    color: #6A8DAB;
}

/* Triple Moon Theme (Dark Purple) */
.theme-triple-moon .card-content,
.theme-triple-moon .merch-button {
    border-color: #483D8B;
    box-shadow: 0 0 15px rgba(72, 61, 139, 0.5);
}
.theme-triple-moon .brand-name,
.theme-triple-moon .brand-data strong {
    color: #9370DB;
}
.theme-triple-moon .merch-button {
    background-color: #483D8B;
    color: #eee;
}
.theme-triple-moon .merch-button:hover {
    background-color: #111;
    color: #9370DB;
}
.theme-triple-moon .static-page-container h1,
.theme-triple-moon .static-page-container a {
    color: #9370DB;
}

/* Astroflora Theme (Neon Pink) */
.theme-astroflora .card-content,
.theme-astroflora .merch-button {
    border-color: #F92A82;
    box-shadow: 0 0 15px rgba(249, 42, 130, 0.5);
}
.theme-astroflora .brand-name,
.theme-astroflora .brand-data strong {
    color: #F92A82;
}
.theme-astroflora .merch-button {
    background-color: #F92A82;
    color: #eee;
}
.theme-astroflora .merch-button:hover {
    background-color: #111;
    color: #F92A82;
}
.theme-astroflora .static-page-container h1,
.theme-astroflora .static-page-container a {
    color: #F92A82;
}

/* Neptune Theme (Navy Blue) */
.theme-neptune .card-content,
.theme-neptune .merch-button {
    border-color: #2A3B49;
    box-shadow: 0 0 15px rgba(42, 59, 73, 0.5);
}
.theme-neptune .brand-name,
.theme-neptune .brand-data strong {
    color: #6A8DAB;
}
.theme-neptune .merch-button {
    background-color: #2A3B49;
    color: #eee;
}
.theme-neptune .merch-button:hover {
    background-color: #111;
    color: #6A8DAB;
}
.theme-neptune .static-page-container h1,
.theme-neptune .static-page-container a {
    color: #6A8DAB;
}

/* Onboarding Theme (Default Green) */
.theme-onboarding .card-content,
.theme-onboarding .merch-button {
    border-color: #00FF00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}
.theme-onboarding .brand-name,
.theme-onboarding .brand-data strong {
    color: #00FF00;
}
.theme-onboarding .merch-button {
    background-color: #00FF00;
    color: #111;
}
.theme-onboarding .merch-button:hover {
    background-color: #111;
    color: #00FF00;
}
.theme-onboarding .static-page-container h1,
.theme-onboarding .static-page-container a {
    color: #00FF00;
}

.questionnaire-container {
    margin-top: 30px;
    border-top: 2px solid #444;
    padding-top: 20px;
    position: relative;
}

.pre-wrapper {
    position: relative;
}

.questionnaire-text {
    background-color: #222;
    border: 2px solid #444;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    font-size: 0.9em;
    color: #eee;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: #eee;
    border: 1px solid #555;
    padding: 5px 10px;
    font-family: sans-serif;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    opacity: 0.7;
}

.copy-button:hover {
    background-color: #444;
    opacity: 1;
}



/* --- RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .card-content {
        padding: 15px;
        gap: 10px;
    }
    .site-header {
        padding: 10px 15px;
    }
    .dex-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        padding: 15px;
    }
}

