/* Global Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --text-color: #333;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

header h1 {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* City Clocks */
.clock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.clock-item {
    display: flex;
    flex-direction: column;
}

.city-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    font-size: 1rem;
    background-color: var(--white);
}

.digital-clock {
    background: linear-gradient(145deg, #1e3c72, #2a5298);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.digital-clock .time {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.digital-clock .date {
    font-size: 1rem;
    margin-bottom: 5px;
}

.digital-clock .timezone {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Working Hours Overlap */
.working-hours-overlap {
    background-color: #f0f8ff;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.overlap-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlap-indicator {
    margin-bottom: 10px;
    text-align: center;
}

.overlap-hours {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Time Converter */
.converter-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.converter-input, .converter-output {
    flex: 1;
    min-width: 200px;
}

.time-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    margin-top: 10px;
}

.converter-arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.converted-time {
    background-color: var(--light-bg);
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 10px;
    border: 1px solid #ddd;
}

.convert-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.convert-btn:hover {
    background-color: var(--primary-color);
}

/* Ad Containers */
.ad-container {
    width: 100%;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.adsense-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    color: #888;
    text-align: center;
    position: relative;
}

.top-ad .adsense-placeholder {
    height: 90px;
}

.middle-ad .adsense-placeholder {
    height: 250px;
}

.bottom-ad {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.bottom-ad .adsense-placeholder {
    height: 90px;
}

.ad-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* Coming Soon Section */
.coming-soon-section {
    background-color: var(--white);
    padding: 2rem 0;
    margin: 2rem 0 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.coming-soon-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.coming-soon-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.request-city {
    background-color: #f0f8ff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem auto;
    max-width: 800px;
    border-left: 4px solid var(--accent-color);
}

.request-city h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.request-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.request-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.request-btn i {
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clock-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-container {
        flex-direction: column;
    }
    
    .converter-input, .converter-output {
        width: 100%;
    }
    
    .converter-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .digital-clock .time {
        font-size: 2rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .digital-clock .time {
        font-size: 1.8rem;
    }
    
    .top-ad .adsense-placeholder,
    .bottom-ad .adsense-placeholder {
        height: 50px;
    }
    
    .middle-ad .adsense-placeholder {
        height: 200px;
    }
}