/* ai-prompts.css - Combined Styles for AI Prompts */
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f7f9fc, #eef3f8);
    color: #333;
    line-height: 1.6;
}

/* AI Section Styling */
.ai-section {
    padding: 60px 5%;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

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

/* AI Container & Grid */
.ai-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* AI Card with Enhanced Design */
.ai-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 3px;
    background-clip: padding-box;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Border Effect */
.ai-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371, #47d1fb, #667eea);
    background-size: 400% 400%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: gradientShift 8s ease infinite;
    z-index: 0;
    opacity: 0.8;
}

/* Moving Glowing Orb */
.ai-card::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-radius: 50%;
    box-shadow: 0 0 15px #ffd700, 0 0 30px #ff8c00;
    animation: moveOrb 6s linear infinite;
    z-index: 1;
    opacity: 0.7;
}

/* Card Hover Effects */
.ai-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ai-card:hover::before {
    opacity: 1;
    animation-duration: 4s;
}

.ai-card:hover::after {
    opacity: 1;
    animation-duration: 3s;
}

/* Image Box */
.ai-image-box {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-radius: 13px 13px 0 0;
}

.ai-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ai-card:hover .ai-image-box img {
    transform: scale(1.08);
}

/* Card Content */
.card-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: white;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.prompt-text {
    flex-grow: 1;
    margin-bottom: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-height: 80px;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.copy-btn, .go-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.copy-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    animation: successPulse 0.6s ease;
}

.go-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.go-btn:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.like-btn, .share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.like-btn:hover {
    background-color: #fff5f5;
    color: #e74c3c;
    transform: translateY(-1px);
}

.share-btn:hover {
    background-color: #f0f8ff;
    color: #3498db;
    transform: translateY(-1px);
}

.like-btn.liked {
    color: #e74c3c;
    background-color: #fff5f5;
}

.like-btn.liked i {
    animation: heartPulse 0.6s ease;
}

.share-btn.shared {
    color: #3498db;
    background-color: #f0f8ff;
}

.count {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 25px;
    text-align: center;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    color: #495057;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.load-more-btn:disabled:hover::before {
    left: -100%;
}

/* Animations */
@keyframes gradientShift {
    0% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}

@keyframes moveOrb {
    0% { 
        top: -10px; 
        left: -10px; 
    }
    25% { 
        top: -10px; 
        left: calc(100% - 10px); 
    }
    50% { 
        top: calc(100% - 10px); 
        left: calc(100% - 10px); 
    }
    75% { 
        top: calc(100% - 10px); 
        left: -10px; 
    }
    100% { 
        top: -10px; 
        left: -10px; 
    }
}

@keyframes heartPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.3); 
    }
    100% { 
        transform: scale(1); 
    }
}

@keyframes successPulse {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
    100% { 
        transform: scale(1); 
    }
}

/* Home Page Specific Styles */
.home-blogs-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.home-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.home-blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.home-blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.home-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.08);
}

.home-blog-content {
    padding: 25px;
}

.home-blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.home-blog-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.home-blog-excerpt {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.home-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.home-blog-date {
    color: #999;
    font-size: 0.9rem;
}

.home-read-more {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.home-read-more:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ai-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .ai-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .home-blogs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .ai-section {
        padding: 40px 20px;
    }
    
    .home-blogs-section {
        padding: 60px 20px;
    }
    
    .ai-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home-blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .ai-section {
        padding: 30px 15px;
    }
    
    .home-blogs-section {
        padding: 40px 15px;
    }
    
    .ai-image-box {
        height: 200px;
    }
    
    .home-blog-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px 15px;
    }
    
    .home-blog-content {
        padding: 20px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ================================
   Pagination Styles - FIXED VERSION
   ================================ */
.pagination-container {
    margin: 2rem 0;
    text-align: center;
}

.pagination {
    display: inline-block;
    background: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pagination-info {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    cursor: pointer;
    font-size: 1rem;
}

.page-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* YEH IMPORTANT HAI - ACTIVE BUTTON STYLING */
.page-btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
    font-weight: bold !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5) !important;
}

.page-btn.prev-btn,
.page-btn.next-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
    padding: 0.5rem 1rem;
}

.page-btn.prev-btn:hover,
.page-btn.next-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.page-dots {
    padding: 0.5rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .pagination-controls {
        gap: 0.25rem;
    }
    
    .page-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        min-width: 35px;
    }
}