/*
Theme Name: XPrimeHub
Theme URI: https://example.com
Author: Grok
Author URI: https://x.ai
Description: Final theme - mobile shows 2 posts per row, responsive images, gradient buttons on all links.
Version: 2.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f0f0f0; color: #333; font-family: Arial, sans-serif; }
a { text-decoration: none; }

header {
    background: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid black;
}
.logo img { height: 50px; max-width: 200px; object-fit: contain; }

.top-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.top-menu a {
    color: #333;
    font-weight: bold;
    font-size: 15px;
}
.top-menu a:hover { color: #ff0066; }

.header-search-container {
    position: relative;
    width: 200px;
}
.header-search {
    padding: 8px 15px 8px 38px;
    border: 1px solid #ddd;
    border-radius: 30px;
    width: 100%;
    font-size: 14px;
    background: #f9f9f9;
    outline: none;
}
.header-search:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
}
.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #007bff;
    pointer-events: none;
}

.categories {
    padding: 15px 20px;
    background: #f0f0f0;
    overflow-x: auto;
    white-space: nowrap;
}
.categories-inner {
    display: inline-flex;
    gap: 8px;
}
.categories button {
    background: #28a745;
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 13px;
    border: none;
    cursor: pointer;
}
.categories button:hover, .categories button.active {
    background: #218838;
}

.more-sites {
    display: block;
    margin: 20px auto;
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.main-search {
    text-align: center;
    padding: 30px 20px;
}
.search-container {
    position: relative;
    display: inline-block;
    width: 90%;
    max-width: 650px;
}
.main-search-input {
    width: 100%;
    padding: 15px 55px 15px 50px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    outline: none;
}
.main-search-input::placeholder { color: #999; font-size: 17px; }
.main-search-input:focus { border-color: #007bff; box-shadow: 0 10px 30px rgba(0,123,255,0.2); }
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #007bff;
    pointer-events: none;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 30px 20px 200px 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.movie-card {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    cursor: pointer;
}
.movie-card:hover { transform: translateY(-10px); }
.movie-thumbnail { position: relative; height: 330px; overflow: hidden; }
.movie-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.movie-title {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: white;
}

.pagination {
    text-align: center;
    padding: 40px 0 200px 0;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-top: 3px solid black;
    margin-top: 100px;
}
.footer-links a {
    color: #333;
    font-weight: bold;
    margin: 0 15px;
    font-size: 16px;
}
.footer-links a:hover { color: #ff0066; }

.movie-card-link { text-decoration: none; color: inherit; display: block; }
.movie-card-link:hover .movie-card { transform: translateY(-10px); }

.footer-spacer { height: 300px; width: 100%; }

/* सिंगल पेज – रिस्पॉन्सिव हीरो */
.single-movie-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-movie-hero {
    display: flex;
    align-items: center;
    gap: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.hero-poster img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-info {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    color: #ff0066;
    margin: 0 0 20px 0;
    font-weight: bold;
    line-height: 1.2;
}

.single-movie-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.movie-plot {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

.movie-plot p {
    margin-bottom: 35px;
}

/* पोस्ट में इमेजेस रिस्पॉन्सिव */
.movie-plot img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 30px auto;
}

/* ग्रेडिएंट डाउनलोड बटन – सभी लिंक्स पर */
.gradient-download-btn {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 50px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin: 35px auto;
    text-align: center;
    max-width: 500px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.gradient-download-btn:hover::before {
    left: 100%;
}

.gradient-download-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.6);
}

.gradient-download-btn i {
    margin-right: 15px;
    font-size: 26px;
    transition: transform 0.3s ease;
}

.gradient-download-btn:hover i {
    transform: translateX(8px);
}

/* रिस्पॉन्सिव ग्रिड – मोबाइल पर 2 पोस्ट */
@media (max-width: 992px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr); /* मोबाइल पर 2 पोस्ट */
        gap: 20px;
        padding: 20px 15px 200px 15px;
    }
    
    .movie-thumbnail {
        height: 280px;
    }
    
    .movie-title {
        font-size: 15px;
        padding: 12px;
    }
    
    .single-movie-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    .hero-poster img {
        max-width: 350px;
    }
    .hero-title {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-poster img {
        max-width: 300px;
    }
    .gradient-download-btn {
        font-size: 20px;
        padding: 18px;
    }
    .single-movie-content {
        padding: 30px 20px;
    }
    .movie-plot {
        font-size: 16px;
    }
}