@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Orbitron:wght@400;700&display=swap');

:root {
    /* Base Colors */
    --black-bg: #1A1A1A;
    --dark-surface: #252525;
    --yellow-primary: #FFD700; /* Gold-like yellow */
    --yellow-accent: #FFEB3B; /* Lighter yellow for highlights */
    --text-light: #E0E0E0;
    --text-muted: #999999;

    /* Glows & Shadows */
    --glow-yellow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    --shadow-dark: 0 8px 25px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.3);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08); /* Very subtle transparency for dark themes */
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', sans-serif; /* Modern, techy font */
    background-color: var(--black-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll from glowing elements */
}

/* --- Keyframe Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    0% { box-shadow: var(--glow-yellow); }
    50% { box-shadow: var(--glow-yellow), 0 0 40px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: var(--glow-yellow); }
}

/* --- Header --- */
.main-header {
    background: var(--glass-bg); /* Glassy effect */
    backdrop-filter: blur(10px); /* Blur behind for glass effect */
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-dark);
    text-align: center; /* Center the logo/title */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .logo {
    font-family: 'Orbitron', sans-serif; /* Sci-fi looking font for logo */
    color: var(--yellow-primary);
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: var(--glow-yellow); /* Initial glow */
    transition: text-shadow 0.3s ease-in-out;
}

.main-header .logo:hover {
    text-shadow: var(--glow-yellow), 0 0 25px rgba(255, 235, 59, 0.8); /* Stronger glow on hover */
}

/* If you use an image logo */
/* .main-header .logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(var(--glow-yellow));
    transition: filter 0.3s ease-in-out;
}
.main-header .logo img:hover {
    filter: drop-shadow(var(--glow-yellow)) drop-shadow(0 0 25px rgba(255, 235, 59, 0.8));
} */


/* --- Main Content Area --- */
.content {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background-color: var(--dark-surface);
    border-radius: 15px; /* More rounded corners */
    box-shadow: var(--shadow-dark);
    animation: fadeIn 0.8s ease-out forwards; /* Fade in motion */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle yellow border */
    position: relative; /* For inner glowing elements */
}

h1 {
    color: var(--yellow-accent);
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* --- Tool List / Dashboard Links --- */
.tool-list {
    list-style: none;
    padding: 0;
    display: grid; /* Grid for flexible layout */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
}

.tool-list li a {
    display: flex; /* Use flexbox for centering text */
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--black-bg);
    color: var(--yellow-primary);
    text-decoration: none;
    border-radius: 12px; /* Rounded corners for tool cards */
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden; /* For pseudo-element effects */
}

.tool-list li a:hover {
    background-color: #333;
    color: var(--yellow-accent);
    transform: translateY(-8px) scale(1.02); /* Lift and enlarge effect */
    box-shadow: var(--glow-yellow); /* Yellow glow on hover */
    animation: glowPulse 2s infinite alternate; /* Pulsing glow */
}

/* Optional: Add a subtle overlay on hover */
.tool-list li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.tool-list li a:hover::before {
    opacity: 1;
}

.tool-list li a span { /* To ensure text is above pseudo-element */
    position: relative;
    z-index: 2;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto; /* Push footer to the bottom */
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--dark-surface); /* Footer background */
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* --- 404 Page Styling --- */
.content h1 {
    color: var(--error-color); /* Assuming error-color defined in email_creator CSS */
    text-shadow: 0 0 10px rgba(233, 75, 60, 0.5);
}
.content p {
    text-align: center;
    margin-bottom: 1.5rem;
}
.content a {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--yellow-primary);
    color: var(--black-bg);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}
.content a:hover {
    background-color: var(--yellow-accent);
    transform: translateY(-2px);
}