/* Wonderly Homepage Styles */

.wonderly-homepage-wrapper {
    margin: 0;
    padding: 0;
}

/* Header */
.wonderly-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wonderly-header .logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #667eea;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.my-trips-btn {
    background: #667eea;
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.my-trips-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 30px 80px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.95;
}

/* Search Card */
.search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-tabs {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.search-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.search-tab.active {
    color: #667eea;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
}

.search-tab svg {
    width: 24px;
    height: 24px;
}

/* Trip Type */
.trip-type {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.trip-type label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.trip-type input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

/* Search Form */
.search-form {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr 1.5fr;
    gap: 15px;
    margin-bottom: 25px;
}

.form-field {
    position: relative;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.location-details,
.date-day,
.class-info {
    position: absolute;
    bottom: -20px;
    left: 16px;
    font-size: 12px;
    color: #999;
}

.swap-button {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.swap-button:hover {
    background: #667eea;
    transform: translateY(-50%) rotate(180deg);
}

.swap-button svg {
    width: 20px;
    height: 20px;
    stroke: #667eea;
    transition: stroke 0.3s;
}

.swap-button:hover svg {
    stroke: white;
}

/* Hide return field for one-way */
.return-field.hidden {
    display: none;
}

/* Search Button */
.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 60px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Trending */
.trending {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.trending-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
}

.trending-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.trending-link {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.trending-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Recent Searches */
.recent-searches {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 30px;
}

.recent-searches h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.recent-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.recent-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.recent-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.recent-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

.recent-card-route {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.recent-card-details {
    font-size: 14px;
    color: #999;
}

/* 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);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-field:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 36px;
    }

    .search-card {
        padding: 25px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }

    .recent-cards {
        grid-template-columns: 1fr;
    }
    
    .swap-button {
        right: 10px;
        top: auto;
        bottom: -50px;
    }
}
