/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #1a73e8;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Nav Bar */

/* Active Link Indicator */
.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    /* background-color: #1a73e8; Or your brand color */
     background-color: red; 
    border-radius: 2px;
}


nav {
    background-color: #fff;
    
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav a {
    color: #1a73e8;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}
nav a:hover,
nav a.active {
    background-color: #e8f0fe;
    color: #174ea6;
}

/* Nav Container */
.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

/* Logo */
.logo {
    font-weight: bold;
    font-size: 1.2em;
    color: #1a73e8;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a73e8;
}

/* Links */
.nav-links {
    display: flex;
    gap: 10px;
}
.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
    background-color: #e8f0fe;
    color: #174ea6;
}

/* Mobile Styling */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        border-top: 1px solid #ccc;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}


/* Prompt Cards */
.prompt-grid {
    margin-top: 30px;
}
.prompt-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}
.prompt-image {
    flex: 0 0 40%;
}
.prompt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prompt-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.prompt-content h3 {
    margin-top: 0;
    color: #174ea6;
}
.prompt-content p {
    font-size: 1em;
    margin-top: 10px;
}
.copy-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}
.copy-btn:hover {
    background-color: #174ea6;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prompt-card {
        flex-direction: column;
    }
    .prompt-image {
        width: 100%;
    }
}

/* Sub Navigation Wrapper */
.sub-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sub-nav-wrapper::-webkit-scrollbar {
    display: none;
}

/* Sub Nav Content */
#sub-category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 20px;
    min-width: max-content;
    scroll-behavior: smooth;
}

/* Sub Nav Links */
#sub-category-nav a {
    white-space: nowrap;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 20px;
    background-color: #f1f3f4;
    color: #1a73e8;
    text-decoration: none;
    transition: 0.3s ease;
    flex-shrink: 0;
}

#sub-category-nav a:hover {
    background-color: #e8f0fe;
}

#sub-category-nav a.active {
    background-color: #1a73e8;
    color: white;
}

/* Desktop View - Sub Nav wraps instead of scrolls */
@media (min-width: 769px) {
    .sub-nav-wrapper {
        overflow-x: visible;
    }

    #sub-category-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

