/**
 * Hero Section Styles
 * Matches the design from the image with modern touches
 */

/* Common Hero Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-loading {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Homepage Hero */
.hero-homepage {
    background: linear-gradient(135deg, #3b52d9 0%, #667eea 50%, #764ba2 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
}

/* Wave Background */
.hero-wave-bg {
    position: absolute;
    top: 0;
    right: -10%;
    width: 70%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 0 0 50%;
    transform: scale(1.5);
}

.hero-wave-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Hero Content (Left Side) */
.hero-content {
    color: white;
    z-index: 2;
    position: relative;
}

.hero-badge {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Features List */
.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-style: normal;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Trust Badges */
.hero-trust {
    margin-top: 2rem;
}

.trust-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.badge-item .stars {
    color: #ffd700;
    font-size: 1rem;
}

.badge-item span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Hero Form Card (Right Side) */
.hero-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styles */
.hero-form .form-group {
    margin-bottom: 1rem;
}

.hero-form .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.hero-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hero-form .form-control::placeholder {
    color: #999;
}

.hero-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Page Counter */
.page-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem;
}

.btn-counter {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-weight: 700;
}

.btn-counter:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-display {
    flex: 1;
    text-align: center;
}

.page-number {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.page-words {
    display: block;
    font-size: 0.85rem;
    color: #999;
}

/* File Upload Button */
.file-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    margin-bottom: 0;
}

.file-upload-btn:hover {
    border-color: #667eea;
    background: #f0f3ff;
    color: #667eea;
}

.file-upload-btn i {
    font-size: 1.2rem;
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Select Dropdown */
.hero-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Textarea */
.hero-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Page Hero (Inner Pages) */
.hero-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    position: relative;
    color: white;
}

.hero-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-page-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs .separator {
    opacity: 0.5;
}

.breadcrumbs .current {
    font-weight: 600;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Post Hero */
.hero-post {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    color: white;
}

.hero-post-content {
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.95;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Archive Hero */
.hero-archive {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 60px;
    color: white;
}

.hero-archive-content {
    text-align: center;
}

.archive-type {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-homepage {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-form-card {
        padding: 2rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-homepage {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-form-card {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.25rem;
    }
    
    .hero-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-page,
    .hero-post,
    .hero-archive {
        padding: 80px 0 40px;
    }
}

/* Loading State */
.hero-homepage-fallback,
.hero-page-fallback {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid System for Hero */
.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.hero-section [class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-section .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.hero-section .align-items-center {
    align-items: center;
}

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

.hero-content,
.hero-form-card {
    animation: fadeInUp 0.6s ease-out;
}

.hero-form-card {
    animation-delay: 0.2s;
}
