/* --- Promptify Studio :: FINAL APP-LIKE THEME V3 --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- 1. THEME VARIABLES & GLOBAL STYLES --- */
:root { --primary-color: #8A2BE2; --primary-gradient: linear-gradient(45deg, #8A2BE2, #4A00E0); --secondary-color: #1a1a2e; --background-color: #121212; --card-background: #1e1e2e; --text-color: #e0e0e0; --light-text-color: #a0a0b0; --border-color: #3a3a4e; --success-color: #2ecc71; --error-color: #e74c3c; --font-family: 'Poppins', sans-serif; --border-radius: 12px; --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); --glow-shadow: 0 0 20px rgba(138, 43, 226, 0.25); }
body { font-family:var(--font-family); background:var(--background-color); color:var(--text-color); margin:0; line-height:1.6; padding-bottom:80px; }
.container { max-width:1200px; margin:0 auto; padding:0 15px; }
.logo { font-size:1.5rem; font-weight:300; text-decoration:none; color:var(--text-color); }
.logo strong { font-weight:700; color:var(--primary-color); }
.btn { background:var(--primary-gradient); color:#fff; padding:10px 20px; border:none; border-radius:8px; cursor:pointer; font-size:1rem; text-decoration:none; display:inline-flex; align-items:center; gap:8px; font-weight:600; transition:all 0.2s; }
.btn:hover { transform:scale(1.05); box-shadow:var(--glow-shadow); }
.no-prompts { text-align:center; padding: 40px; color: var(--light-text-color); font-size: 1.2rem; }

/* --- HEADER & SIDE MENU --- */
.header { background:var(--card-background); padding:10px 0; border-bottom:1px solid var(--border-color); position:sticky; top:0; z-index:1000; }
.header-container { display:flex; justify-content:space-between; align-items:center; }
.hamburger-btn { background:none; border:none; color:var(--text-color); font-size:1.5rem; cursor:pointer; }
.side-menu-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:1199; opacity:0; visibility:hidden; transition:all 0.3s; }
.side-menu-overlay.active { opacity:1; visibility:visible; }
.side-menu { position:fixed; top:0; left:0; width:280px; height:100%; background:var(--secondary-color); z-index:1200; transform:translateX(-100%); transition:transform 0.3s ease-in-out; padding:20px; box-sizing:border-box; display:flex; flex-direction:column; }
.side-menu.active { transform:translateX(0); }
.side-menu-header { margin-bottom: 20px; }
.side-menu a { color:var(--text-color); text-decoration:none; font-size:1.1rem; font-weight:600; padding:15px; border-radius:8px; display:flex; align-items:center; gap:15px; }
.side-menu a:hover { background:var(--card-background); }

/* --- SEARCH & MAIN HEADER --- */
.search-container { position: relative; width: 100%; margin: 20px 0; }
.search-container input { width: 100%; padding: 15px 50px 15px 20px; border: 1px solid var(--border-color); border-radius: 50px; font-size: 1rem; box-sizing: border-box; background: var(--card-background); color: var(--text-color); transition: all 0.3s; }
.search-container input:focus { outline: none; border-color: var(--primary-color); box-shadow: var(--glow-shadow); }
.search-container button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 45px; background: var(--primary-gradient); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.main-header-block { text-align:center; margin-bottom:30px; }
.main-header-block h1 { margin:0; }
.main-header-block p { color: var(--light-text-color); margin-top: 5px; }

/* --- MASONRY GRID LAYOUT --- */
.prompt-grid { column-gap: 15px; }
.prompt-card-link { display: inline-block; width: 100%; margin-bottom: 15px; break-inside: avoid; text-decoration:none; }
.prompt-card { position:relative; background:var(--card-background); border-radius:var(--border-radius); border:1px solid var(--border-color); transition:all 0.2s; overflow:hidden; }
.prompt-card:hover { transform:translateY(-5px); box-shadow:var(--glow-shadow); border-color:var(--primary-color); }
.prompt-image { width:100%; display:block; }
.prompt-card-content { padding:15px; }
.prompt-title { margin:0 0 10px 0; font-size:1rem; font-weight:600; color: var(--text-color); }
.prompt-actions { display:flex; justify-content:space-between; align-items:center; margin-top:15px; }
.copy-btn { padding: 8px 15px; font-size: 0.9rem; }
.copy-count { color: var(--light-text-color); font-size: 0.9rem; }
@media (max-width: 767px) { .masonry-grid { column-count: 2; } }
@media (min-width: 768px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1024px) { .masonry-grid { column-count: 4; } }

/* --- BOOKMARK BUTTON --- */
.bookmark-btn { background:none; border:none; color:var(--light-text-color); font-size:1.2rem; cursor:pointer; padding:5px; transition:color 0.2s; }
.bookmark-btn i.fas { color:var(--primary-color); } /* Filled icon */
.prompt-card .bookmark-btn { position:absolute; top:10px; right:10px; background:rgba(0,0,0,0.5); border-radius:50%; width:36px; height:36px; color:white; font-size:1rem; display:flex; align-items:center; justify-content:center; z-index: 10; backdrop-filter: blur(5px); }
.single-prompt-actions { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.single-prompt-actions .bookmark-btn { display:inline-flex; align-items:center; gap:8px; background:var(--card-background); padding:8px 15px; border-radius:8px; font-size: 1rem; }
.single-prompt-actions .bookmark-btn span { font-size: 0.9rem; font-weight: 600; }

/* --- SINGLE VIEW PAGE & BOTTOM NAV --- */
.single-prompt-container { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
.single-prompt-image { width: 100%; border-radius: var(--border-radius); max-height: 80vh; object-fit: contain; }
.single-prompt-title { font-size: 2.2rem; font-weight: 700; margin: 0 0 15px 0; line-height: 1.2; }
.single-prompt-copy-box { background: var(--card-background); border-radius: var(--border-radius); border: 1px solid var(--border-color); margin-top: 20px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; cursor: pointer; }
.single-prompt-copy-box pre { margin: 0; white-space: pre-wrap; word-wrap: break-word; font-family: inherit; color: var(--text-color); flex-grow: 1; }
.copy-btn-single { background: var(--secondary-color); border: 1px solid var(--border-color); color: var(--text-color); font-size: 1.2rem; min-width: 50px; height: 50px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.copy-btn-single:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
@media (min-width: 992px) { .single-prompt-container { grid-template-columns: 1fr 1fr; } }
.mobile-bottom-nav { display:flex; position:fixed; bottom:0; left:0; right:0; background:rgba(30,30,46,0.85); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-top:1px solid var(--border-color); justify-content:space-around; padding:10px 0 calc(10px + env(safe-area-inset-bottom)); z-index:1000; }
.nav-item { display:flex; flex-direction:column; align-items:center; text-decoration:none; color:var(--light-text-color); }
.nav-item i { font-size:1.4rem; margin-bottom:4px; }
.nav-item.active, .nav-item:hover { color:var(--primary-color); }
.desktop-footer { text-align: center; padding: 20px 0; margin-top: 40px; background: var(--card-background); border-top: 1px solid var(--border-color); }
.load-more-container { text-align: center; padding: 30px 0; }

/* --- UTILITIES (Spinner, Toast) --- */
.loading-spinner { display:none; text-align:center; font-size:2rem; padding:40px; color: var(--primary-color); }
.toast { /* ... Toast styles ... */ }

/* --- ADMIN PANEL & LOGIN STYLES --- */

/* Login Page Styling */
.login-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    width: 100%; 
    background-color: var(--secondary-color); 
}
.login-box { 
    background: var(--card-background); 
    padding: 40px; 
    border-radius: var(--border-radius); 
    border: 1px solid var(--border-color); 
    text-align: center; 
    width: 100%; 
    max-width: 400px; 
    margin: 15px; 
}

/* Admin Panel Layout */
body.admin-body { 
    padding-bottom: 0; 
    display: flex; 
    position: relative; 
    overflow-x: hidden; 
}
.admin-sidebar { 
    width: 250px; 
    background: var(--secondary-color); 
    min-height: 100vh; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
    transition: transform 0.3s ease; 
    z-index: 1100; 
}
.admin-sidebar nav a { 
    display: flex; 
    align-items: center; 
    color: var(--light-text-color); 
    text-decoration: none; 
    padding: 12px; 
    border-radius: 8px; 
    margin: 5px 0; 
    transition: all 0.2s; 
    font-weight: 600; 
}
.admin-sidebar nav a i { 
    margin-right: 15px; 
    width: 20px; 
}
.admin-sidebar nav a:hover { 
    background: var(--card-background); 
    color: var(--text-color); 
}
.admin-sidebar nav a.active { 
    background: var(--primary-gradient); 
    color: #fff; 
}
.admin-content { 
    flex-grow: 1; 
    padding: 30px; 
}
.admin-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    gap: 20px; 
}
.admin-header h2 .highlight { 
    color: var(--primary-color); 
}

/* Dashboard Widgets (Stat Cards, Prompt Grid) */
.stat-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-bottom: 30px; 
}
.stat-card { 
    background: var(--card-background); 
    padding: 20px; 
    border-radius: var(--border-radius); 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.stat-card i { 
    font-size: 2rem; 
    color: var(--primary-color); 
}
.stat-card h3 { 
    margin: 0; 
    font-size: 1rem; 
    color: var(--light-text-color); 
}
.stat-card p { 
    margin: 5px 0 0; 
    font-size: 2rem; 
    font-weight: 700; 
}
.admin-prompt-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px; 
}
.admin-prompt-card { 
    background: var(--card-background); 
    border-radius: var(--border-radius); 
    display: flex; 
    gap: 15px; 
    padding: 15px; 
}
.admin-prompt-thumbnail { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 8px; 
    flex-shrink: 0; 
}
.admin-prompt-content { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    width: 100%; 
}
.admin-prompt-content h4 { 
    margin: 0; 
    font-weight: 600; 
}
.admin-prompt-meta { 
    display: flex; 
    gap: 15px; 
    font-size: 0.8rem; 
    color: var(--light-text-color); 
    align-items: center; 
}
.admin-prompt-actions { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: auto; 
}
.btn-action { 
    background: var(--secondary-color); 
    color: var(--light-text-color); 
    border: 1px solid var(--border-color); 
    border-radius: 50%; 
    width: 32px; 
    height: 32px; 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
}
.btn-action.edit:hover { 
    color: var(--success-color); 
    border-color: var(--success-color); 
}
.btn-action.delete:hover { 
    color: var(--error-color); 
    border-color: var(--error-color); 
}

/* --- FORM STYLING (Used in Admin Panel) --- */
.form-group { 
    margin-bottom: 20px; 
    text-align: left; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: var(--light-text-color); 
}
.form-group input[type="text"], .form-group input[type="password"], .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family);
    transition: all 0.2s;
}
.form-group input[type="text"]:focus, .form-group input[type="password"]:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: var(--glow-shadow); 
}
.char-counter { 
    font-size: 0.8rem; 
    color: var(--light-text-color); 
    text-align: right; 
    margin-top: 5px; 
}
.custom-file-upload { 
    border: 2px dashed var(--border-color); 
    border-radius: 8px; 
    display: inline-block; 
    padding: 15px 20px; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.2s; 
    width: 100%; 
    box-sizing: border-box;
}
.custom-file-upload:hover { 
    border-color: var(--primary-color); 
    background: var(--secondary-color); 
}
.custom-file-upload input[type="file"] { 
    display: none; 
}
.custom-file-upload span { 
    margin-left: 10px; 
    color: var(--light-text-color); 
}
.current-image { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-top: 15px; 
    background: var(--secondary-color); 
    padding: 10px; 
    border-radius: 8px; 
}
.current-image img { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 8px; 
}
.switch { 
    position: relative; 
    display: inline-block; 
    width: 50px; 
    height: 28px; 
}
.switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}
.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #555; 
    border-radius: 34px; 
    transition: .4s; 
}
.slider:before { 
    position: absolute; 
    content: ""; 
    height: 20px; 
    width: 20px; 
    left: 4px; 
    bottom: 4px; 
    background-color: white; 
    border-radius: 50%; 
    transition: .4s; 
}
input:checked + .slider { 
    background-color: var(--primary-color); 
}
input:checked + .slider:before { 
    transform: translateX(22px); 
}

/* --- ADMIN PANEL RESPONSIVENESS --- */
.admin-mobile-header { 
    display: none; 
}
@media (max-width: 992px) {
    body.admin-body { 
        flex-direction: column; 
    }
    .admin-sidebar { 
        position: fixed; 
        top: 0; 
        left: 0; 
        height: 100%; 
        transform: translateX(-100%); 
    }
    .admin-sidebar.active { 
        transform: translateX(0); 
        box-shadow: 0 0 50px rgba(0,0,0,0.5); 
    }
    .admin-content { 
        width: 100%; 
        box-sizing: border-box; 
    }
    .admin-mobile-header { 
        background: var(--secondary-color); 
        padding: 10px 15px; 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
    }
    .mobile-menu-toggle { 
        background: none; 
        border: none; 
        color: var(--text-color); 
        font-size: 1.5rem; 
        cursor: pointer; 
    }
    .admin-overlay { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        background: rgba(0,0,0,0.5); 
        z-index: 1099; 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s; 
    }
    .admin-overlay.active { 
        opacity: 1; 
        visibility: visible; 
    }
    body.menu-open { 
        overflow: hidden; 
    }
}

.desktop-footer { 
    display: none; /* <<<<<< YEH LINE SAB SE AHEM HAI */
    text-align: center; 
    padding: 20px 0; 
    margin-top: 40px; 
    background: var(--card-background); 
    border-top: 1px solid var(--border-color); 
}

@media (min-width: 768px) {
    /* ... baaki ka code ... */
    .desktop-nav a:hover { color: var(--primary-color); }
    .prompt-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-bottom-nav { display: none; }
    .desktop-footer { display: block; } /* <<<<<< YEH LINE BHI AHEM HAI */
}

/* --- AD-SLOT STYLING --- */

/* General Ad Slot Styling */
.adsense-slot {
    width: 100%;
    min-height: 100px; /* Minimum height for ad visibility */
    background: var(--card-background);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important for AdSense */
}

/* Ad Slot that fits inside the grid */
.prompt-card-ad {
    text-decoration: none;
    color: inherit;
    display: block;
    break-inside: avoid; /* For masonry grid */
    margin-bottom: 15px;
}
.prompt-card-ad .adsense-slot {
    min-height: 250px; /* Adjust height as needed for in-feed ads */
    margin: 0;
    border-style: solid;
}


/* --- FINAL POLISH: NEW TOAST STYLE & FOOTER FIX --- */

/* 1. New Attractive Toast Notification Style */
.toast {
    position: fixed;
    left: 50%;
    bottom: -100px; /* Shuru mein screen se bahar */
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    /* Khoobsurat bouncy animation */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px; /* Icon aur text ke darmiyan space */
}

.toast.show {
    bottom: 30px; /* Screen ke andar final position */
    opacity: 1;
    visibility: visible;
}

/* 2. Responsiveness aur Footer Space Fix */
@media (max-width: 767px) {
    /* Mobile par Toast ko bottom menu ke oopar dikhayein */
    .toast.show {
        bottom: 90px;
    }
}

@media (min-width: 768px) {
    /* Desktop par body ke neeche se extra space khatam karein */
    body {
        padding-bottom: 0;
    }
}


/* --- ADMIN PANEL MOBILE HEADER FIX & IMPROVEMENT --- */

/* 1. Naya Mobile Header Style */
.admin-mobile-header {
    display: none; /* Desktop par hide rahega */
    background: var(--card-background);
    padding: 10px 15px;
    /* iPhone 'notch' jaise devices ke liye oopar se extra space */
    padding-top: calc(10px + env(safe-area-inset-top)); 
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Screen ke oopar fix rahega */
    top: 0;
    z-index: 1050; /* Content ke oopar, lekin side menu ke neeche */
    border-bottom: 1px solid var(--border-color);
}

.admin-mobile-header .logo {
    font-size: 1.4rem; /* Logo ko thora chota karein */
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}


/* 2. Responsive Overrides (Mobile ke liye) */
@media (max-width: 992px) {
    body.admin-body {
        flex-direction: column; 
    }

    /* Main content ko header ke neeche se shuru karein */
    body.admin-body .admin-content {
        padding-top: 15px;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1100; /* Sidebar hamesha sab se oopar rahega */
    }

    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }

    /* Mobile Header ko dikhayein */
    .admin-mobile-header {
        display: flex;
    }

    .admin-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1099;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .admin-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* --- ADMIN PANEL HEADER WIDTH FIX --- */

@media (max-width: 1100px) {
    /* Yeh body.admin-body ko poori width dega */
    body.admin-body {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Yeh admin content area se extra padding kam karega */
    body.admin-body .admin-content {
        padding-left: 1px;
        padding-right: 1px;
        padding-top: 0px;
    }
}

/* --- CATEGORY PAGE & ADMIN STYLES --- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.category-card { position: relative; display: block; border-radius: var(--border-radius); overflow: hidden; }
.category-card img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform 0.3s; }
.category-card:hover img { transform: scale(1.1); }
.category-name { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px 15px 15px; }
.category-name span { color: white; font-weight: 600; font-size: 1.1rem; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }

/* Admin Category Management */
.category-management-layout { display: grid; gap: 30px; }
@media (min-width: 992px) { .category-management-layout { grid-template-columns: 1fr 1fr; } }
.category-list h3, .category-form h3 { margin-top: 0; }
.category-item { display: flex; justify-content: space-between; align-items: center; background: var(--card-background); padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; }

/* --- ADMIN PANEL CATEGORY LIST IMAGE FIX --- */

/* Category List item ko behtar banayein */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-background);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Naya style jo Category ki image ko chota karega */
.cat-thumb {
    width: 40px;  /* Choti width */
    height: 40px; /* Choti height */
    object-fit: cover;
    border-radius: 6px; /* Halke se gol kinare */
    margin-right: 15px;
}

/* Category ka naam aur image ko ek saath group karein */
.cat-info {
    display: flex;
    align-items: center;
}
/* --- ADMIN PANEL FORM SELECT DROPDOWN STYLE FIX --- */

/* Dropdown (select) ko behtar banayein */
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem; /* Text ka size theek karein */
    transition: all 0.2s;

    /* Dropdown arrow ko hide karein taake custom arrow dikha sakein */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Custom arrow ke liye background image */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0b0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
    padding-right: 40px; /* Arrow ke liye jagah banayein */
}

/* Dropdown par focus (click) karne ka style */
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--glow-shadow);
}

/* --- RELATED PROMPTS SECTION STYLING --- */

.related-prompts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-prompts-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.related-prompts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile par 2 columns */
    gap: 15px;
}

/* --- RELATED PROMPTS CARD STYLE FIX --- */

.related-prompt-card {
    position: relative;
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid transparent; /* Start with transparent border */
    transition: all 0.3s ease;
}

.related-prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
    border-color: var(--primary-color);
}

.related-prompt-card img {
    width: 100%;
    /* Use aspect-ratio for consistent height */
    aspect-ratio: 3 / 4; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.related-prompt-card:hover img {
    transform: scale(1.05);
}

.related-prompt-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 20px 15px 15px; /* Add more padding for text */
    /* Add a gradient overlay for better text readability */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Desktop par 4 columns */
@media (min-width: 768px) {
    .related-prompts-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* --- ABOUT US PAGE STYLES --- */

/* Hero Section */
.about-hero {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
}
.about-hero .logo {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.about-hero h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0 0 15px 0;
}
.about-hero p {
    color: var(--light-text-color);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Section */
.features-section {
    text-align: center;
    margin-bottom: 50px;
}
.features-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.feature-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}
.feature-card p {
    color: var(--light-text-color);
    margin: 0;
}

/* Join Community Section */
.join-community-section {
    text-align: center;
    background: var(--card-background);
    padding: 50px 30px;
    border-radius: var(--border-radius);
}
.join-community-section h2 {
    font-size: 2rem;
    margin-top: 0;
}
.join-community-section p {
    color: var(--light-text-color);
    max-width: 500px;
    margin: 0 auto 30px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Responsive Grid for Features */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- LEGAL PAGES (PRIVACY POLICY, ETC.) STYLES --- */

.legal-page-container {
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.legal-content {
    background: var(--card-background);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-content p, .legal-content li {
    color: var(--light-text-color);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* --- CONTACT US PAGE STYLES --- */

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 50px auto;
}

.contact-card {
    background: var(--card-background);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card i.fas {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.contact-card p {
    color: var(--light-text-color);
    margin: 0 0 30px 0;
    flex-grow: 1; /* Pushes button to the bottom */
}

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links-contact .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links-contact .social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- HOMEPAGE CATEGORY SLIDER STYLES --- */

.category-slider-section {
    margin: 20px 0;
}

.category-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-slider-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.category-slider-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.category-slider-wrapper {
    /* Hide the scrollbar */
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.category-slider-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.category-slider {
    display: flex;
    gap: 15px;
}

.category-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    flex-shrink: 0; /* Stop items from shrinking */
}

.category-slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* Gol images */
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.category-slide:hover img {
    border-color: var(--primary-color);
}

.category-slide span {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- AD-SLOT STYLING --- */

/* General Ad Slot Styling */
.adsense-slot {
    width: 100%;
    min-height: 100px; /* Minimum height for ad visibility */
    background: var(--card-background);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Important for AdSense */
}

/* Ad Slot that fits inside the grid */
.prompt-card-ad {
    text-decoration: none;
    color: inherit;
    display: block;
    break-inside: avoid; /* For masonry grid */
    margin-bottom: 15px;
}
.prompt-card-ad .adsense-slot {
    min-height: 250px; /* Adjust height as needed for in-feed ads */
    margin: 0;
    border-style: solid;
}