/**
 * CrickMate Frontend CSS
 * Additional styles for the home page
 */

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1005&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
    margin-top: 0; /* Remove margin since we already have padding-top on body */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Removed hero-wave styles as the element was removed */

/* Location Selector Animations */
.animate-select {
    animation: selectPulse 0.5s ease-in-out;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Location Search Styles */
.location-search {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-top: 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.location-search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 1;
}

.location-search-input {
    width: 100%;
    padding: 15px 40px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.location-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background-color: white;
}

.search-clear-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1;
}

.search-clear-btn:hover {
    color: var(--primary-color);
}

/* Autocomplete Results Styles */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 5px;
}

.autocomplete-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

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

.autocomplete-item:hover {
    background-color: #f9fafb;
}

.autocomplete-item.active {
    background-color: rgba(30, 58, 138, 0.05);
}

.autocomplete-icon {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-main {
    font-weight: 500;
    color: var(--dark-color);
}

.autocomplete-secondary {
    font-size: 0.8rem;
    color: var(--light-text-color);
    margin-top: 2px;
}

.autocomplete-type {
    font-size: 0.75rem;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.autocomplete-type.state {
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
}

.autocomplete-type.city {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.autocomplete-type.area {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}

.autocomplete-empty {
    padding: 15px;
    text-align: center;
    color: var(--light-text-color);
    font-style: italic;
}

.search-btn {
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

/* Featured Turfs Section */
.featured-turfs {
    background-color: #f9fafb;
}

/* Data Source Alert Styles */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-left: 4px solid #10b981;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

/* Turf Cards Styles */
.turf-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

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

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

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

.turf-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.turf-details {
    padding: 20px;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 10px 10px;
}

.turf-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.turf-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--light-text-color);
    font-size: 0.9rem;
}

.turf-location i {
    color: var(--primary-color);
    margin-top: 3px;
}

.turf-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.turf-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-color);
}

.turf-feature i {
    color: var(--secondary-color);
}

.turf-price {
    margin-top: auto;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--light-text-color);
}

.btn-block {
    width: 100%;
}

/* How It Works Section Styles */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step-description {
    color: var(--light-text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section Styles */
.about-section {
    background-color: #f9fafb;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(30, 58, 138, 0.3), rgba(16, 185, 129, 0.3));
    z-index: 1;
}

.about-content {
    padding: 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.about-feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.about-feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.about-feature-content p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: white;
}

.testimonials-slider-container {
    padding: 20px 0;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 5px;
}

.testimonial-content p::after {
    content: '\201D';
    font-size: 2rem;
    color: var(--secondary-color);
    line-height: 0;
    vertical-align: -0.4em;
    margin-left: 5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--dark-color);
}

.testimonial-author-info p {
    font-size: 0.9rem;
    color: var(--light-text-color);
}

/* CTA Section Styles */
.cta-section {
    background-color: #f9fafb;
}

.cta-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    color: white;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZmZmZiI+PHBhdGggZD0iTTEyODAgMy40QzEwNTAuNTkgMTggMTAxOS40IDg0Ljg5IDczNC40MiA4NC44OWMtMzIwIDAtMzIwLTg0LjMtNjQwLTg0LjNDNTkuNC41OSAyOC4yIDEuNiAwIDMuNFYxNDBoMTI4MHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCAyNC4zMWM0My40Ni01LjY5IDk0LjU2LTkuMjUgMTU4LjQyLTkuMjUgMzIwIDAgMzIwIDg5LjI0IDY0MCA4OS4yNCAyNTYuMTMgMCAzMDcuMjgtNTcuMTYgNDgxLjU4LTgwVjE0MEgweiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik0xMjgwIDUxLjc2Yy0yMDEgMTIuNDktMjQyLjQzIDUzLjQtNTEzLjU4IDUzLjQtMzIwIDAtMzIwLTU3LTY0MC01Ny00OC44NS4wMS05MC4yMSAxLjM1LTEyNi40MiAzLjZWMTQwaDEyODB6Ii8+PC9nPjwvc3ZnPg==');
    background-size: 100% 100px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Contact Section Styles */
.contact-section {
    background-color: white;
}

.contact-info {
    padding: 20px;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-text p {
    font-size: 0.95rem;
    color: var(--light-text-color);
    line-height: 1.6;
}

.contact-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
}

.contact-form button {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Alert Styles */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.alert {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.alert.show {
    transform: translateX(0);
    opacity: 1;
}

.alert-warning {
    border-left: 4px solid var(--accent-color);
}

.alert-success {
    border-left: 4px solid var(--secondary-color);
}

.alert-success i {
    color: var(--secondary-color);
}

.alert i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.alert span {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-color);
}

.alert-close {
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .location-search-container {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .cta-container {
        padding: 30px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .location-search {
        padding: 15px;
    }
    
    .autocomplete-results {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 450px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-container {
        padding: 20px;
    }
    
    .location-search {
        margin-top: 20px;
        padding: 12px;
    }
    
    .search-input-wrapper {
        min-width: 100%;
    }
    
    .location-search-input {
        padding: 12px 35px 12px 40px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .autocomplete-results {
        max-height: 200px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
    }
}

/* Additional styles for mobile webview */
@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .location-search {
        margin-top: 15px;
        padding: 10px;
    }
    
    .location-search-input {
        padding: 10px 30px 10px 35px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        font-size: 1rem;
        left: 12px;
    }
    
    .search-clear-btn {
        font-size: 0.9rem;
        right: 12px;
    }
    
    .search-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        min-width: 120px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .autocomplete-results {
        max-height: 180px;
    }
    
    .autocomplete-item {
        padding: 8px 10px;
    }
    
    .autocomplete-main {
        font-size: 0.9rem;
    }
    
    .autocomplete-secondary {
        font-size: 0.75rem;
    }
    
    .autocomplete-type {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}
