/* World Clock Tool Specific Styles */

/* Tool Header */
.tool-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    margin-top: 70px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.tool-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tool-header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fbbf24;
    backdrop-filter: blur(10px);
}

.tool-header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-header-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tool-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-features .feature {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-features .feature i {
    color: #fbbf24;
}

/* World Clock Tool Section */
.world-clock-tool {
    padding: 80px 0;
    background: #f8fafc;
}

/* Local Time Section */
.local-time-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.local-time-header h2 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.local-time-header p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.time-main {
    font-size: 4.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.time-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.time-date, .time-zone {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 500;
}

/* Timezone Controls */
.timezone-controls {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timezone-controls h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-form .form-input {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form .form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.quick-add-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-add {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
}

.quick-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* World Clock Grid */
.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.timezone-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.timezone-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.timezone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timezone-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.city-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
}

.remove-timezone {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.remove-timezone:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.timezone-time {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.timezone-date {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.timezone-offset {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Time Converter */
.time-converter-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.time-converter-section h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.converter-form {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.converter-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.converter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.converter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.converter-group .form-input,
.converter-group .form-select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.converter-group .form-input:focus,
.converter-group .form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.converter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.5rem;
    padding: 0 1rem;
}

.converted-time {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popular Timezones */
.popular-timezones {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.popular-timezones h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.timezone-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.timezone-category h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.timezone-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timezone-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.timezone-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.timezone-item .city {
    font-weight: 500;
    color: #374151;
}

.timezone-item .time {
    font-weight: 600;
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.action-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tool-header-text h1 {
        font-size: 2rem;
    }
    
    .world-clock-tool {
        padding: 40px 0;
    }
    
    .local-time-section,
    .timezone-controls,
    .time-converter-section,
    .popular-timezones {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .time-main {
        font-size: 3rem;
    }
    
    .time-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form .form-input {
        min-width: auto;
    }
    
    .converter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .converter-arrow {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    
    .timezone-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .world-clock-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 80px 0 60px;
    }
    
    .tool-header-text h1 {
        font-size: 1.8rem;
    }
    
    .local-time-section,
    .timezone-controls,
    .time-converter-section,
    .popular-timezones {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .time-main {
        font-size: 2.5rem;
    }
    
    .quick-add-buttons {
        justify-content: center;
    }
    
    .quick-add {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .world-clock-tool {
        background: white;
    }
    
    .timezone-controls,
    .action-buttons {
        display: none;
    }
    
    .timezone-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .local-time-section {
        border: 2px solid #1e293b;
    }
}
