/* Import base styles from index.css */
@import url('index.css');

/* Search Hero Section */
.search-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.search-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    z-index: 0;
}

.search-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f7fafc);
}

.search-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    animation: fadeIn 0.8s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-badge i {
    font-size: 1.1rem;
}

.search-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    animation: fadeInDown 0.6s ease;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-large {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.search-suggestions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease 0.8s backwards;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.search-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.search-input-wrapper:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 1);
}

.search-input-wrapper i {
    padding: 1.5rem 0 1.5rem 2rem;
    color: #667eea;
    font-size: 1.3rem;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: #2d3748;
}

.search-input-wrapper input::placeholder {
    color: #a0aec0;
}

.search-input-wrapper button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.5rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-input-wrapper button:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateX(-2px);
}

.search-input-wrapper button i {
    padding: 0;
    color: white;
    font-size: 1rem;
}

.search-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-query {
    font-size: 1.1rem;
    opacity: 0.95;
    animation: fadeIn 0.8s ease 0.6s backwards;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Search Results Section */
.search-results {
    padding: 60px 0;
    min-height: 60vh;
}

.results-header {
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #718096;
    font-size: 1rem;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.5s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.result-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.result-card:hover .result-image img {
    transform: scale(1.1);
}

.result-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
}

.result-content {
    padding: 1.5rem;
}

.result-content h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.result-content p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 1rem;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.result-link:hover {
    gap: 0.8rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 5rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.no-results h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Recommended Section */
.recommended-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.recommended-title {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 2rem;
    text-align: center;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.search-badge {
    animation: fadeIn 0.8s ease, float 3s ease-in-out infinite 2s;
}

.search-stats .stat-item:nth-child(1) {
    animation-delay: 0.4s;
}

.search-stats .stat-item:nth-child(2) {
    animation-delay: 0.6s;
}

.search-stats .stat-item:nth-child(3) {
    animation-delay: 0.8s;
}

/* Responsive */
@media (max-width: 768px) {
   .search-hero .container{
    padding: 0;
   }
    .search-hero {
        padding: 100px 0 60px;
        min-height: 450px;
    }

    .search-title {
        font-size: 2.5rem;
        letter-spacing: -0.8px;
        margin-bottom: 1.5rem;
    }

    .search-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .search-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .search-input-wrapper {
        border-radius: 50px;
        margin: 0 1rem;
    }

    .search-input-wrapper i {
        padding: 1.3rem 0 1.3rem 1.5rem;
        font-size: 1.1rem;
    }

    .search-input-wrapper input {
        padding: 1.3rem 0.8rem;
        font-size: 1rem;
    }

    .search-input-wrapper button {
        padding: 1.3rem 2rem;
        font-size: 0.9rem;
    }

    .search-input-wrapper button span {
        display: none;
    }

    .search-stats {
        gap: 2.5rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .search-suggestions {
        gap: 0.8rem;
        margin-top: 1.2rem;
        padding: 0 1rem;
    }

    .suggestion-tag {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .search-query {
        font-size: 1rem;
        padding: 1rem 1.8rem;
        margin: 0 1rem;
    }

    .results-grid,
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-header h2,
    .recommended-title {
        font-size: 1.5rem;
    }
}
/* Newsletter Success Modal */
.newsletter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.newsletter-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

.newsletter-modal-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    text-align: center;
    color: white;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: successPulse 0.6s ease;
}

.success-icon i {
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.newsletter-modal-body {
    padding: 2rem;
    text-align: center;
}

.newsletter-modal-body h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-modal-body p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
}

.modal-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.modal-feature i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.modal-feature span {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    text-align: center;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.modal-btn i {
    font-size: 1rem;
}

/* Modal Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}