:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --accent: #ff6b6b;
    --dark: #2d334a;
    --light: #f8f9fa;
    --success: #20bf6b;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* WhatsApp Group Styles */
.whatsapp-group {
    margin-left: 15px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-text {
    font-size: 0.85rem;
}

/* WhatsApp Modal Styles */
.whatsapp-modal {
    max-width: 500px;
}

.whatsapp-content {
    padding: 0 20px 20px;
}

.whatsapp-rules, .whatsapp-benefits {
    margin-bottom: 25px;
}

.whatsapp-rules h3, .whatsapp-benefits h3 {
    color: #25D366;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.whatsapp-rules ul, .whatsapp-benefits ul {
    list-style: none;
    padding: 0;
}

.whatsapp-rules li, .whatsapp-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.whatsapp-rules i {
    color: #25D366;
    font-size: 1rem;
}

.whatsapp-benefits i {
    color: #4e54c8;
    font-size: 1rem;
}

.whatsapp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.whatsapp-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.whatsapp-join-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-later-btn {
    padding: 12px;
    background: none;
    border: 2px solid #ddd;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-later-btn:hover {
    border-color: #25D366;
    color: #25D366;
}

/* Mobile WhatsApp Button */
.mobile-nav .whatsapp-mobile {
    color: #25D366;
}

.mobile-nav .whatsapp-mobile.active {
    background: rgba(37, 211, 102, 0.1);
}

/* WhatsApp Floating Button (Optional) */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-group {
        margin-left: 10px;
    }
    
    .whatsapp-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
    }
    
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* YouTube Shorts Style Horizontal Feed */
.shorts-horizontal-feed {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.shorts-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 20px;
}

.shorts-feed-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f0f0f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-badge {
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.shorts-controls {
    display: flex;
    gap: 8px;
}

.shorts-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shorts-control-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.shorts-control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced Mobile Touch Scrolling for Shorts Feed */
.shorts-track-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .shorts-track-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 15px;
        margin: 0 -15px;
        width: calc(100% + 30px);
        touch-action: pan-x;
    }
    
    .shorts-track-container::-webkit-scrollbar {
        display: none;
    }
    
    /* Enable smooth snapping for better UX */
    .shorts-track-container {
        scroll-snap-type: x mandatory;
    }
}

.shorts-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    padding: 5px 0;
}

@media (max-width: 768px) {
    .shorts-track {
        display: flex;
        gap: 12px;
        padding: 5px 15px;
        width: max-content;
        min-width: 100%;
    }
}

/* Individual Short Item */
.shorts-item {
    flex: 0 0 120px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    .shorts-item {
        flex: 0 0 110px;
        scroll-snap-align: start;
    }
}

.shorts-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.shorts-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.shorts-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shorts-item:hover .shorts-thumbnail img {
    transform: scale(1.1);
}

.shorts-views {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.shorts-new-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.shorts-info {
    padding: 8px;
}

.shorts-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #0f0f0f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.shorts-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: #606060;
}

.shorts-time {
    color: #ff6b6b;
    font-weight: 600;
}

/* Loading state - OPTIMIZED */
.shorts-loading {
    display: flex;
    gap: 12px;
    padding: 0 20px;
}

.shorts-skeleton {
    flex: 0 0 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1s infinite; /* REDUCED: 1s instead of 1.5s */
    border-radius: 12px;
    height: 200px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .shorts-horizontal-feed {
        margin-top: 60px;
        padding: 15px 0;
    }
    
    .shorts-feed-header {
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .shorts-feed-header h3 {
        font-size: 1.1rem;
    }
    
    .shorts-track-container {
        padding: 0 15px;
    }
    
    .shorts-item {
        flex: 0 0 110px;
    }
    
    .shorts-thumbnail {
        height: 140px;
    }
    
    .shorts-controls {
        display: none !important; /* Force hide arrows on mobile */
    }
    
    /* Ensure track container takes full width */
    .shorts-track-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .shorts-track-container {
        padding: 0 10px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .shorts-track {
        gap: 10px;
        padding: 5px 10px;
    }
    
    .shorts-item {
        flex: 0 0 100px;
    }
}

/* Add this to your styles.css file */
#uploadModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#uploadModal.active {
    display: flex !important;
}

#uploadModal .upload-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

/* Desktop-only heading styles */
.desktop-only {
    display: block;
    padding: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

}

.desktop-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .desktop-title {
        font-size: 2.2rem;
    }
}


/* Add this to your existing styles.css file */

/* Reduce desktop header height */
@media (min-width: 769px) {
    header {
        padding: 8px 0 !important;
    }
    
    nav {
        padding: 10px 0 !important;
    }
    
    .categories-container {
        margin: 8px 0 !important;
        padding: 0 20px !important;
    }
    
    .category-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
    
    .search-box {
        border-radius: 18px !important;
    }
    
    #searchInput {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .search-btn {
        padding: 10px 15px !important;
    }
    
    /* Make logo slightly smaller */
    .logo img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo span {
        font-size: 1.5rem !important;
    }
    
    /* Adjust user profile elements */
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .logout-btn {
        font-size: 1.1rem !important;
    }
    
    /* Ensure header stays compact on scroll */
    header.scrolled {
        padding: 5px 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Additional optimization for very large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1100px !important;
    }
}
/* YouTube-style Categories */
.categories-container {
    position: relative;
    margin: 15px 0;
    padding: 0 40px;
    overflow: hidden;
}

.categories-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.categories-track {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    min-width: min-content;
}

.category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    background: #e5e5e5;
}

.category-btn.active {
    background: #333;
    color: white;
}

.category-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.category-nav:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.category-prev {
    left: 0;
}

.category-next {
    right: 0;
}

.category-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .categories-container {
        padding: 0 30px;
        margin: 10px 0;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .category-nav {
        width: 32px;
        height: 32px;
         /* Hide arrows on mobile */
    }
    
    .categories-scroll {
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .categories-container {
        padding: 0 35px;
    }
}
/* Mobile Responsive News Upload Form - IMPORTANT */
@media (max-width: 768px) {
    /* Modal container adjustments */
    .upload-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 20px 15px !important;
        border-radius: 15px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Modal header adjustments */
    .modal-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .modal-header h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    
    .close-modal {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        font-size: 1.5rem !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
    }
    
    /* Form layout adjustments */
    .upload-form {
        padding: 0 !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
    
    /* Input field adjustments */
    .upload-form input,
    .upload-form textarea,
    .upload-form select {
        padding: 12px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 8px !important;
        min-height: 44px !important; /* Touch-friendly size */
    }
    
    .upload-form textarea {
        min-height: 120px !important;
        resize: vertical !important;
    }
    
    /* File upload area adjustments */
    .file-upload {
        padding: 25px 15px !important;
        min-height: 120px !important;
    }
    
    .file-upload i {
        font-size: 2.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .file-upload p {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }
    
    /* Checkbox and label adjustments */
    .form-check {
        margin-bottom: 12px !important;
    }
    
    .form-check label {
        font-size: 0.95rem !important;
    }
    
    /* Submit button adjustments */
    .submit-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        margin-top: 20px !important;
        min-height: 50px !important;
    }
    
    /* Label adjustments */
    .upload-form label {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
    
    /* Small text adjustments */
    .upload-form small {
        font-size: 0.8rem !important;
    }
    
    /* Modal overlay adjustments */
    .modal-overlay {
        padding: 10px !important;
        align-items: flex-start !important;
        padding-top: 40px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .upload-modal {
        padding: 15px 12px !important;
        width: 98% !important;
        max-width: 98% !important;
    }
    
    .modal-header h2 {
        font-size: 1.3rem !important;
        padding-right: 40px !important; /* Space for close button */
    }
    
    .file-upload {
        padding: 20px 12px !important;
    }
    
    .file-upload i {
        font-size: 2rem !important;
    }
    
    .submit-btn {
        padding: 16px 20px !important;
        font-size: 1.1rem !important; /* More prominent on small screens */
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .upload-modal {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .upload-form input,
    .upload-form textarea {
        font-size: 16px !important; /* Prevents zoom on focus */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .upload-modal {
        border: 2px solid #000 !important;
    }
    
    .upload-form input,
    .upload-form textarea,
    .upload-form select {
        border-width: 2px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .upload-modal {
        transition: none !important;
    }
    
    .submit-btn {
        transition: none !important;
    }
}



/* News Section Styles */
.news-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* News Filters */
.news-filters {
    margin-bottom: 40px;
    padding: 20px 0;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.3);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* News Badges */
.breaking-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--success), #20c997);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(32, 191, 107, 0.4);
}

/* News Image */
.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f4f8, #e4edf5);
}

/* News Content */
.news-content {
    padding: 25px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Meta */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.news-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
}

/* News Stats */
.news-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-views {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-views i {
    color: var(--primary);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary);
    gap: 8px;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    padding: 30px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* News Loading States - OPTIMIZED */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #666;
}

.news-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite; /* REDUCED: 0.8s instead of 1s */
}

.news-error, .no-news {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.retry-btn:hover {
    background: var(--secondary);
}

/* Form Styles for News Upload */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-check label {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

/* Enhanced File Upload for News */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(78, 84, 200, 0.03);
    transform: translateY(-2px);
}

.file-upload.dragover {
    border-color: var(--primary);
    background: rgba(78, 84, 200, 0.1);
}

.file-upload i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0.7;
}

.file-upload p {
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
}

/* Responsive Design for News */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 100px 0 60px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-controls {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 90px 0 40px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .news-card {
        border-radius: 15px;
    }
    
    .news-content {
        padding: 15px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .file-upload {
        padding: 30px 15px;
    }
    
    .file-upload i {
        font-size: 2.5rem;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .upload-modal {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .upload-form input,
    .upload-form textarea {
        font-size: 16px !important; /* Prevents zoom on focus */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .upload-modal {
        border: 2px solid #000 !important;
    }
    
    .upload-form input,
    .upload-form textarea,
    .upload-form select {
        border-width: 2px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .upload-modal {
        transition: none !important;
    }
    
    .submit-btn {
        transition: none !important;
    }
}


/* Add to existing styles.css */

/* YouTube Shorts Mobile Styles */
.shorts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  max-width: 100%;
  margin: 0 auto;
}

.shorts-prompt-card {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.shorts-video-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shorts-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shorts-engagement {
  position: absolute;
  right: 12px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  z-index: 10;
}

.engagement-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.engagement-action i {
  font-size: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.engagement-count {
  font-size: 11px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.shorts-info {
  padding: 12px;
  background: white;
}

.shorts-prompt-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f0f0f;
}

.shorts-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #606060;
}

/* Infinite scroll loading - OPTIMIZED */
.loading-shorts {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #666;
  width: 100%;
}

.loading-shorts .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4e54c8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite; /* REDUCED: 0.8s instead of 1s */
  margin-right: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading skeletons - OPTIMIZED */
.loading-prompt .shorts-video-container {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1s infinite; /* REDUCED: 1s instead of 1.5s */
}

.loading-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1s infinite; /* REDUCED: 1s instead of 1.5s */
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: none;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #606060;
  font-size: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item.active {
  color: #4e54c8;
}

.nav-item i {
  font-size: 18px;
}

/* Prompt actions */
.prompt-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.copy-prompt-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 15px;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.copy-prompt-btn:hover {
  background: #4e54c8;
  color: white;
  border-color: #4e54c8;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .shorts-container {
    padding: 8px;
    gap: 12px;
  }
  
  .shorts-video-container {
    height: 500px;
  }
  
  .shorts-prompt-card {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .engagement-action i {
    font-size: 18px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .shorts-video-container {
    height: 450px;
  }
  
  .shorts-info {
    padding: 10px;
  }
  
  .shorts-prompt-text {
    font-size: 13px;
  }
}

/* Hide desktop elements on mobile */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Count animation */
.count-animation {
  animation: countPop 0.3s ease;
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Enhanced Mobile Responsive Header */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 15px;
    }
    
    .nav-left {
        order: 1;
        flex: 1;
        justify-content: flex-start;
    }
    
    .search-container {
        order: 3;
        flex: 1 1 100%;
        margin: 10px 0 0 0;
        max-width: none;
    }
    
    .nav-right {
        order: 2;
        flex: 1;
        justify-content: flex-end;
        gap: 10px;
    }
    
    .logo span {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .mobile-toggle {
        display: block;
        margin-right: 15px;
        font-size: 1.3rem;
        color: var(--dark);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        padding: 10px 20px;
        width: 80%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(78, 84, 200, 0.1);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .category-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .login-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .mobile-toggle {
        margin-right: 10px;
        font-size: 1.2rem;
    }
    
    .search-container {
        margin: 8px 0 0 0;
    }
    
    .search-box {
        border-radius: 20px;
    }
    
    #searchInput {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 10px 15px;
    }
    
    .category-dropdown {
        display: block;
    }
    
    .category-btn {
        padding: 8px 10px;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .nav-links {
        top: 65px;
    }
}

/* Mobile Navigation Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* Enhanced Search for Mobile */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: 120px;
        left: 20px;
        right: 20px;
        max-height: 50vh;
        border-radius: 15px;
    }
    
    .suggestion-item {
        padding: 15px 20px;
    }
}

/* Improved Logo for Mobile */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Enhanced Mobile User Experience */
@media (max-width: 768px) {
    .user-profile {
        gap: 8px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .logout-btn {
        font-size: 1.1rem;
    }
}

/* Touch-friendly buttons for mobile */
@media (max-width: 768px) {
    .search-btn,
    .category-btn,
    .login-btn,
    .mobile-toggle {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* YouTube-style Header */
.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border: 1px solid #ddd;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 1px 8px rgba(78, 84, 200, 0.2);
}

#searchInput {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.search-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-left: 1px solid #ddd;
}

.search-btn:hover {
    background: #e9ecef;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--dark);
}

.category-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.category-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.category-dropdown:hover .category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.category-item:hover {
    background: #f8f9fa;
}

.category-item i {
    width: 20px;
    color: #666;
}

.category-item.active {
    background: rgba(78, 84, 200, 0.1);
    color: var(--primary);
}

.category-item.active i {
    color: var(--primary);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    color: #666;
    font-size: 0.9rem;
}

.suggestion-text {
    flex: 1;
}

.suggestion-category {
    font-size: 0.8rem;
    color: #888;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        margin: 0 20px;
        max-width: none;
    }
    
    .category-btn span {
        display: none;
    }
    
    .category-btn {
        padding: 10px;
    }
    
    .nav-right {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin: 0 10px;
    }
    
    .category-dropdown {
        display: none;
    }
}

/* SEO Optimized Styles */
.prompt-card {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.prompt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Improved image loading for Core Web Vitals */
.prompt-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
  height: 400px;
}

.prompt-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #f0f4f8, #e4edf5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prompt-image.loaded::before {
  opacity: 0;
}

/* Social sharing buttons */
.social-share {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.share-btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: #4e54c8;
  color: white;
  border-color: #4e54c8;
}

/* Lazy loading for images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Core Web Vitals optimizations */
@media (prefers-reduced-motion: reduce) {
  .prompt-card {
    transition: none;
  }
}

/* Print styles for better accessibility */
@media print {
  .prompt-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .social-share {
    display: none;
  }
}

/* Add to existing styles.css */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.logout-btn:hover {
    color: var(--accent);
}

.login-btn {
    margin-right: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.login-btn:hover {
    text-decoration: underline;
}
.featured-posts {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eeff 100%);
}

.featured-card {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.featured-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.featured-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-tag {
    background: rgba(78, 84, 200, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .featured-card {
        flex-direction: column;
    }
    
    .featured-image {
        min-height: 300px;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="%234e54c8" opacity="0.2"/><circle cx="50" cy="50" r="4" fill="%234e54c8" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="%234e54c8" opacity="0.2"/></svg>');
    background-size: 100px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}


.prompt-example {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: monospace;
    border-left: 4px solid var(--accent);
}

.prompt-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.result-box {
    height: 120px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Features Preview Section */
.features-preview {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eeff 100%);
}

.centered-button {
    text-align: center;
    margin-top: 40px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title p {
    color: #777;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Showcase Preview Section */
.showcase-preview {
    padding: 100px 0;
    background: white;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.prompt-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.prompt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.prompt-image {
    height: 550px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.viral-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.prompt-content {
    padding: 25px;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777;
}

.prompt-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.prompt-text {
    background: var(--light);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
    margin-bottom: 20px;
    position: relative;
}

.prompt-text::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(78, 84, 200, 0.1);
    font-family: serif;
}

.prompt-analysis {
    background: rgba(78, 84, 200, 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.prompt-analysis h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Prompt Converter Section */
.prompt-converter {
    padding: 100px 0;
    background: white;
}

.converter-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.converter-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 25px;
    text-align: center;
}

.converter-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .converter-body {
        grid-template-columns: 1fr 1fr;
    }
}

.converter-column {
    display: flex;
    flex-direction: column;
}

.converter-column h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.converter-column textarea {
    flex: 1;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    resize: none;
    font-family: monospace;
    font-size: 1rem;
    transition: var(--transition);
}

.converter-column textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
}

.converter-actions {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-top: 1px solid #eee;
}

.convert-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.convert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

.converter-tips {
    margin-top: 20px;
    padding: 20px;
    background: rgba(78, 84, 200, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.converter-tips h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.converter-tips ul {
    padding-left: 20px;
}

.converter-tips li {
    margin-bottom: 8px;
}

/* Examples Section */
.examples {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eeff 100%);
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.example-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.example-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
}

.example-header i {
    font-size: 1.5rem;
    color: var(--accent);
}

.example-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.basic-prompt, .enhanced-prompt {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    min-height: 600px;
}

.basic-prompt {
    border-left: 4px solid #ccc;
}

.enhanced-prompt {
    border-left: 4px solid var(--success);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eeff 100%);
}

/* Feature Details Section */
.feature-details {
    padding: 100px 0;
    background: white;
}

.detail-card {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.detail-card.reverse {
    flex-direction: row-reverse;
}

.detail-content {
    flex: 1;
}

.detail-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.detail-content ul {
    padding-left: 20px;
    margin-bottom: 30px;
}

.detail-content li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.detail-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Showcase Section */
.showcase {
    padding: 10px 0;
    background: white;
  
}

.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;

}

.upload-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    background: white;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.pagination-btn.active, .pagination-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-btn:last-child {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e6eeff 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 30px;
    z-index: 2;
}

.step-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.example-box {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.bad-example, .good-example {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bad-example {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--accent);
}

.good-example {
    background: rgba(32, 191, 107, 0.1);
    border-left: 4px solid var(--success);
}

.bad-example h4, .good-example h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spec-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.spec-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reference-card {
    background: var(--light);
    border-radius: 10px;
    padding: 20px;
}

.reference-card h4 {
    margin-bottom: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.reference-card ul {
    list-style: none;
}

.reference-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Best Practices Section */
.best-practices {
    padding: 100px 0;
    background: white;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.practice-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Upload Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.upload-modal {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .upload-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #777;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
}

.upload-form .form-group {
    margin-bottom: 20px;
}

.upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.upload-form input,
.upload-form textarea,
.upload-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.upload-form input:focus,
.upload-form textarea:focus,
.upload-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.upload-form textarea {
    min-height: 120px;
    resize: vertical;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(78, 84, 200, 0.03);
}

.file-upload i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.file-upload p {
    margin-bottom: 15px;
    color: #555;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    margin-top: 15px;
    display: none;
    border-radius: 8px;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
}

.submit-btn:hover {
    background: #ff5252;
    transform: translateY(-3px);
}

/* Mobile Navigation */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 130px 0 60px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .detail-card {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .prompt-result {
        grid-template-columns: 1fr;
    }
    
    .trending-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .example-content {
        grid-template-columns: 1fr;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
}