/**
 * Kumrat Weather Engine - Modern Hero Section v3.0
 * Clean design with gradient background
 */

/* Ticker Section */
.ktwe-ticker-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    padding: 16px 0;
    position: relative;
    z-index: 10;
}

.ktwe-hero-ticker {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ktwe-hero-ticker .kwe-ticker-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ktwe-hero-ticker .kwe-ticker-card:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.ktwe-hero-ticker .kwe-ticker-city {
    color: #ffffff;
}

.ktwe-hero-ticker .kwe-ticker-details {
    color: rgba(255, 255, 255, 0.8);
}

.ktwe-hero-ticker .kwe-ticker-nav {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.ktwe-hero-ticker .kwe-ticker-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ktwe-hero-ticker .kwe-ticker-dot {
    background: rgba(255, 255, 255, 0.4);
}

.ktwe-hero-ticker .kwe-ticker-dot.kwe-active {
    background: #ffffff;
}

/* Search Section */
.ktwe-search-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    padding: 20px 0 40px;
    position: relative;
}

.ktwe-search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ktwe-search-form-modern {
    position: relative;
    width: 100%;
}

.ktwe-search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ktwe-search-input-wrapper:focus-within {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.ktwe-search-form-modern .ktwe-search-icon {
    margin-left: 16px;
    color: #6b7280;
    flex-shrink: 0;
}

.ktwe-search-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    color: #1f2937;
    outline: none;
}

.ktwe-search-input-modern::placeholder {
    color: #9ca3af;
}

.ktwe-detect-location {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ktwe-detect-location:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.ktwe-search-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ktwe-search-submit:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Modern Hero Section */
.ktwe-hero-modern {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
    min-height: auto;
    padding: 40px 20px 60px;
    position: relative;
    overflow: hidden;
}

.ktwe-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.ktwe-hero-modern-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Main Weather Display */
.ktwe-hero-main {
    margin-bottom: 50px;
}

.ktwe-hero-location {
    margin-bottom: 20px;
}

.ktwe-hero-city {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ktwe-hero-country {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 8px;
}

.ktwe-hero-icon-large {
    font-size: 100px;
    margin: 20px 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.ktwe-hero-icon-large svg,
.ktwe-hero-icon-large img {
    width: 120px;
    height: 120px;
}

.ktwe-hero-temp-large {
    font-size: 96px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ktwe-temp-unit {
    font-size: 48px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: top;
    margin-left: 4px;
}

.ktwe-hero-condition {
    font-size: 24px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.ktwe-hero-feels {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* Weather Stats Grid */
.ktwe-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.ktwe-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.ktwe-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ktwe-stat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.ktwe-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ktwe-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ktwe-ticker-section {
        padding: 12px 0;
    }
    
    .ktwe-search-section {
        padding: 15px 0 30px;
    }
    
    .ktwe-hero-modern {
        padding: 30px 15px 40px;
    }
    
    .ktwe-hero-city {
        font-size: 24px;
    }
    
    .ktwe-hero-icon-large {
        font-size: 70px;
    }
    
    .ktwe-hero-icon-large svg,
    .ktwe-hero-icon-large img {
        width: 80px;
        height: 80px;
    }
    
    .ktwe-hero-temp-large {
        font-size: 64px;
    }
    
    .ktwe-temp-unit {
        font-size: 32px;
    }
    
    .ktwe-hero-condition {
        font-size: 18px;
    }
    
    .ktwe-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ktwe-stat-item {
        padding: 15px 10px;
    }
    
    .ktwe-stat-icon {
        font-size: 24px;
    }
    
    .ktwe-stat-value {
        font-size: 16px;
    }
    
    .ktwe-search-input-wrapper {
        padding: 4px;
    }
    
    .ktwe-search-input-modern {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .ktwe-search-submit {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ktwe-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ktwe-hero-temp-large {
        font-size: 56px;
    }
    
    .ktwe-detect-location {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ktwe-search-input-wrapper {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .ktwe-search-input-modern {
        color: #f1f5f9;
    }
    
    .ktwe-search-input-modern::placeholder {
        color: #64748b;
    }
    
    .ktwe-search-form-modern .ktwe-search-icon {
        color: #94a3b8;
    }
}

/* Animation */
@keyframes ktwe-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ktwe-hero-modern-inner > * {
    animation: ktwe-fade-in-up 0.6s ease forwards;
}

.ktwe-hero-modern-inner > *:nth-child(1) { animation-delay: 0.1s; }
.ktwe-hero-modern-inner > *:nth-child(2) { animation-delay: 0.2s; }
.ktwe-hero-modern-inner > *:nth-child(3) { animation-delay: 0.3s; }

/* Page Container */
.ktwe-page-v3 {
    background: #f8fafc;
    min-height: 100vh;
}

/* Content Sections */
.ktwe-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ktwe-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Card Styles */
.ktwe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ktwe-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Hourly Forecast */
.ktwe-hourly-section {
    background: #ffffff;
    padding: 40px 0;
}

.ktwe-hourly-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ktwe-hourly-scroll::-webkit-scrollbar {
    height: 6px;
}

.ktwe-hourly-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ktwe-hourly-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.ktwe-hour-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 15px 10px;
    min-width: 70px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ktwe-hour-item.now {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
}

.ktwe-hour-time {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.ktwe-hour-item.now .ktwe-hour-time {
    color: rgba(255, 255, 255, 0.9);
}

.ktwe-hour-icon {
    font-size: 28px;
    margin: 8px 0;
}

.ktwe-hour-temp {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
}

.ktwe-hour-item.now .ktwe-hour-temp {
    color: white;
}

.ktwe-hour-pop {
    display: block;
    font-size: 11px;
    color: #3b82f6;
    margin-top: 4px;
}

.ktwe-hour-item.now .ktwe-hour-pop {
    color: rgba(255, 255, 255, 0.9);
}

/* Daily Forecast */
.ktwe-forecast-section {
    background: #f8fafc;
    padding: 40px 0;
}

.ktwe-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.ktwe-day-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.ktwe-day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ktwe-day-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.ktwe-day-icon {
    font-size: 40px;
    margin: 10px 0;
}

.ktwe-day-condition {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ktwe-day-temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.ktwe-day-high {
    font-weight: 600;
    color: #1e293b;
}

.ktwe-day-low {
    color: #94a3b8;
}

.ktwe-day-pop {
    display: block;
    font-size: 11px;
    color: #3b82f6;
    margin-top: 6px;
}
