/* ===================================== */
/* === Aurora Glassmorphism Theme === */
/* ===================================== */
/* This theme features a dark background with animated */
/* aurora glows and glass-like card elements. */
/* ===================================== */

/* --- 1. Root Variables & Basic Setup --- */
/* :root holds all theme settings for easy customization. */
:root {
    /* Colors */
    --bg-color: #02000f;
    /* Deep blue background */
    --card-bg: rgba(255, 255, 255, 0.1);
    /* Transparent white for glass effect */
    --card-border: rgba(255, 255, 255, 0.2);
    /* Slightly less transparent border */
    --text-color: #f0f0f0;
    /* Light text color */
    --glow-color-1: #6a0dad;
    /* Purple for aurora */
    --glow-color-2: #0077b6;
    /* Blue for aurora */
    --glow-color-3: #480ca8;
    /* Indigo for aurora */

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    /* Using Poppins for headings */
    --font-body: 'Poppins', sans-serif;
    /* Using Poppins for body */
}

/* Basic reset: Remove default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles for the body */
body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Hide main scrollbar initially for full-screen effect */
    height: 100vh;
    /* Ensure body fills viewport height */
    position: relative;
    /* Needed for positioning fixed elements like aurora */
}

/* --- 2. Aurora Glow Background --- */
/* Creates the animated, blurred background effect. */
.aurora-background {
    position: fixed;
    /* Keep it fixed in the background */
    top: 50%;
    left: 50%;
    /* Center the element and allow rotation around center */
    transform: translate(-50%, -50%);
    width: 150vw;
    /* Make it larger than the viewport */
    height: 150vh;
    /* Create multiple radial gradients for the aurora colors */
    background: radial-gradient(circle at 10% 20%, var(--glow-color-1), transparent 40%),
        radial-gradient(circle at 80% 30%, var(--glow-color-2), transparent 40%),
        radial-gradient(circle at 50% 90%, var(--glow-color-3), transparent 40%);
    filter: blur(100px);
    /* Apply heavy blur for soft glow */
    animation: rotateGlow 20s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    /* Animate rotation */
    z-index: -1;
    /* Place it behind all content */
}

/* Animation for rotating the background glows */
@keyframes rotateGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- 3. Main Content Containers --- */
/* Container for the 3D card effect (index.html) */
.glass-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    /* Enable 3D perspective */
}

/* Containers for content on other pages (Shop, BG, Theme Editor) */
.main-container,
/* For settings/theme editor */
.shop-container {
    /* For shop page */
    max-width: 800px;
    /* Wider max-width for content pages */
    margin: 40px auto;
    /* Add top/bottom margin */
    padding: 20px;
    position: relative;
    /* Ensure content is above background */
    z-index: 1;
}

/* Style for main page titles on content pages */
.page-title {
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}


/* --- 4. Glassmorphism Card (index.html) --- */
/* The main interactive card */
.glass-card {
    width: 90vw;
    /* Use viewport width */
    max-width: 550px;
    /* Set a maximum size */
    padding: 40px;
    text-align: center;
    background: var(--card-bg);
    /* Semi-transparent background */
    border: 1px solid var(--card-border);
    /* Subtle border */
    border-radius: 20px;
    backdrop-filter: blur(12px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(12px);
    /* Safari blur */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Soft shadow */
    transform-style: preserve-3d;
    /* Enable 3D transforms */
    transition: transform 0.1s linear;
    /* Smooth mouse/touch movement */
    /* Flexbox settings for vertical content alignment and scrolling */
    max-height: 80vh;
    /* Limit card height */
    display: flex;
    flex-direction: column;
}

/* Greeting message text */
.greeting-title {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    /* Allow scrolling if text overflows */
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
    /* Flex properties to allow it to grow/shrink */
    flex-grow: 1;
    min-height: 0;
    /* Important for flex overflow */
}

/* Style for the scrollbar inside the greeting title */
.greeting-title::-webkit-scrollbar {
    width: 8px;
}

.greeting-title::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.greeting-title::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}


/* "From" text */
.greeting-from {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 20px;
    opacity: 0.8;
    flex-shrink: 0;
    /* Prevent shrinking */
}

/* --- 5. UI Elements (Buttons) --- */
/* Container for buttons at the bottom */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    /* Center horizontally */
    display: flex;
    gap: 15px;
    /* Space between buttons */
    z-index: 100;
    /* Keep above card */
}

/* Music toggle button */
.control-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Circular */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Common style for floating buttons and control button */
.action-btn,
.control-btn {
    background: rgba(255, 255, 255, 0.1);
    /* Glass background */
    color: var(--text-color);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px);
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    /* Remove underline from links */
}

/* Specific styles for action buttons in the bottom row */
.action-btn {
    border-radius: 25px;
    /* Pill shape */
    padding: 10px 20px;
    font-size: 1rem;
    display: flex;
    /* Align icon and text */
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
}

/* Hover effect for buttons */
.action-btn:hover,
.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    /* Slightly lighter on hover */
}

/* --- 6. Modal (Popup for Sharing) --- */
/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Safari */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    /* Above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Modal content box */
.modal-content {
    background: var(--card-bg);
    /* Match card background */
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    /* For positioning close button */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    /* Limit height */
    overflow-y: auto;
    /* Add scroll if needed */
}

.modal-content h2 {
    /* Modal title */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
    /* Match body text color */
}

.modal-share-actions {
    /* Container for share buttons */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Share buttons inside the modal */
.modal-action-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    /* Slightly lighter than card */
    color: var(--text-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
    display: flex;
    /* Align icon and text */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-action-button:hover {
    background: rgba(255, 255, 255, 0.25);
    /* Lighter on hover */
}

/* Close button (X) inside modal */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.close-btn:hover {
    opacity: 1;
}


/* --- 7. Specific Page Styles (BG / Settings / Shop) --- */
/* Glassmorphism box used on settings/theme editor page */
.settings-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    margin-bottom: 30px;
}

.settings-box h2 {
    /* Titles inside settings box */
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
    /* Separator line */
    padding-bottom: 10px;
    color: var(--text-color);
}

/* Input fields on settings page */
.settings-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.2);
    /* Darker transparent background */
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

textarea.settings-input {
    min-height: 120px;
    resize: vertical;
    /* Allow vertical resizing */
}

/* Grid for music selection */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.music-item {
    /* Individual music choice */
    padding: 20px;
    text-align: center;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle dark background */
}

.music-item:hover {
    background: rgba(255, 255, 255, 0.1);
    /* Lighten on hover */
}

.music-item.selected {
    /* Style for selected music */
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
    border-color: var(--text-color);
    /* Highlight border */
}

.music-item h4 {
    /* Text inside music item */
    margin: 0;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-color);
}

/* Grid for shop products */
.product-grid {
    display: grid;
    /* Responsive columns, minimum 280px */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card-shop {
    /* Individual product card */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    transition: transform 0.3s;
}

.product-card-shop:hover {
    transform: translateY(-10px);
    /* Lift card on hover */
}

.product-card-shop img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.product-card-shop h3 {
    /* Product title */
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card-shop p {
    /* Product description */
    line-height: 1.6;
    flex-grow: 1;
    /* Push price/button to bottom */
    opacity: 0.8;
    color: var(--text-color);
    margin-bottom: 10px;
    /* Added margin */
}

.price-tag-wrapper {
    /* Price container */
    margin: 15px 0;
    /* Adjusted margin */
}

.price {
    /* Price text */
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 5px 20px;
    border-radius: 20px;
}

/* "Buy Now" button on shop page */
.product-card-shop .action-button {
    /* Use .action-button base */
    background: rgba(255, 255, 255, 0.8);
    /* Lighter background */
    color: #000;
    /* Dark text */
    font-weight: 500;
    padding: 12px;
    border-radius: 10px;
    border: none;
    display: block;
    /* Make it full width */
    margin-top: auto;
    /* Push to bottom */
    font-size: 1.1rem;
    /* Adjust font size */
    box-shadow: none;
    /* Remove default glow */
}

.product-card-shop .action-button:hover {
    background: #fff;
    /* White background on hover */
    filter: none;
    /* Remove brightness filter */
}

/* --- 8. Footer --- */
.site-footer {
    padding: 40px 20px 20px 20px;
    /* Padding top, sides, bottom */
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--card-border);
    /* Subtle separator */
    position: relative;
    /* Ensure it's above background */
    z-index: 10;
}

.footer-links {
    display: flex;
    /* Align links horizontally */
    justify-content: center;
    gap: 20px;
    /* Space between links */
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    /* Remove underline */
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    /* Copyright text */
    margin-top: 15px;
    /* Adjusted margin */
    font-size: 0.8rem;
    opacity: 0.5;
}


/* --- 9. Colorful Scrollbar Style --- */
/* Set the width of the scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

/* Style the track */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    /* Dark transparent track */
    border-radius: 10px;
}

/* Style the handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--glow-color-1), var(--glow-color-2));
    /* Use aurora colors */
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    /* Subtle border */
}

/* Style the handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--glow-color-3), var(--glow-color-1));
    /* Shift colors on hover */
}


/* --- 10. Utility: Enable Scrolling on Content Pages --- */
/* Add this class to the <body> tag on pages like shop.html, bg.html */
body.content-page {
    overflow-y: auto;
    /* Allow vertical scroll */
    overflow-x: hidden;
    height: auto;
    /* Allow body height to grow with content */
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-list li i {
    color: var(--primary-accent);
    /* Uses the main accent color */
    font-size: 1.5rem;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-list li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.contact-list li a:hover {
    color: var(--primary-accent);
}

.social-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--text-color);
    font-size: 2.2rem;
    transition: color 0.2s, transform 0.2s;
}

.social-links a:hover {
    color: var(--primary-accent);
    transform: translateY(-3px);
}



/* Common base style for all buttons */
.action-btn,
.control-btn,
.modal-action-button,
.action-button.secondary { /* Include secondary style here */
    background: rgba(255, 255, 255, 0.1); /* Glass background */
    color: var(--text-color);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(5px); /* Subtle blur */
    font-family: 'Poppins', sans-serif; /* Ensure consistent font */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s; /* Smooth transitions */
    text-decoration: none; /* Remove underline from link buttons */
    padding: 10px 20px; /* Default padding */
    border-radius: 25px; /* Default rounding (pill shape) */
    font-size: 1rem; /* Default font size */
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Default space between icon and text */
}

/* Hover effect for all buttons */

.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2); /* Slightly lighter on hover */
}

/* Specific style for Secondary action buttons (like 'Back to Greetings') */
.action-button.secondary {
    background: transparent; /* Transparent background */
    color: var(--text-color); /* Theme text color */
    border: 1px solid var(--card-border); /* Use card border color */
    opacity: 0.8;
}
.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1); /* Slight background on hover */
    opacity: 1;
    color: var(--text-color);
}