/* ============================================ */
/* WORLD CLOCK CSS - CLEAN COMPACT VERSION */
/* Fixes spacing without breaking layout */
/* ============================================ */

/* World clock search - COMPACT */
.world-clock-search {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    position: relative;
}

#city-search {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}

#city-search:focus {
    border-color: var(--primary-color);
    outline: none;
}

#add-city-btn {
    min-width: 100px;
    padding: 10px 20px;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--shadow-color);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.autocomplete-item:hover {
    background-color: var(--bg-secondary);
}

.autocomplete-item .city-name {
    font-weight: 500;
    color: var(--text-color);
}

.autocomplete-item .country-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* World clocks grid - COMPACT */
.world-clocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* World clock card - COMPACT & PROFESSIONAL */
.world-clock-card {
    background: linear-gradient(135deg, var(--bg-color), var(--bg-secondary));
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-normal);
}

.world-clock-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-color);
    border-color: var(--primary-color);
}


.world-clock-card * {
    pointer-events: auto;
}

/* 🔥 FIX REMOVE CLOCK CLICK AREA */
.remove-clock {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    pointer-events: auto !important;

    z-index: 50;
}

/* If the X is inside an icon/span */
.remove-clock * {
    pointer-events: none;
}

.remove-clock:hover {
    opacity: 1;
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
    transform: rotate(90deg);
}

/* Clock card content - COMPACT */
.city-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 30px;
}

.city-name::before {
    content: '📍';
    font-size: 0.9rem;
}

.clock-time {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.clock-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.time-difference {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 10px;
    background-color: var(--bg-color);
    border-radius: 12px;
    display: inline-block;
}

.time-difference.ahead {
    color: var(--success-color);
}

.time-difference.behind {
    color: var(--warning-color);
}

/* Timezone converter - COMPACT */
.timezone-converter {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}

.timezone-converter h3 {
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.timezone-converter h3::before {
    content: '🔄';
    font-size: 1.2rem;
}

.converter-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.converter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.converter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.converter-group select,
.converter-group input {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-color);
    color: var(--text-color);
}

.converted-time {
    padding: 10px 12px;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

/* ============================================ */
/* COMPACT SEO SECTIONS - ADD TO worldclock.css */
/* Replace all existing .seo-section styles with this */
/* ============================================ */

/* SEO SECTION STRUCTURE - NO GAPS */
.seo-section {
    padding: 0;
    margin: 0;
}

.seo-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Headings - Compact spacing */
.seo-section h2 {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding: 0;
}

.seo-section h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
    padding: 0;
}

.seo-section h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 15px 0 10px 0;
    padding: 0;
}

/* Paragraphs - Compact */
.seo-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 15px 0;
    padding: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 1.05rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.benefit-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section - Compact */
.faq-section {
    background: var(--bg-color);
    padding: 0;
    margin: 0;
}

.faq-section .container {
    padding: 35px 20px;
}

.faq-accordion {
    max-width: 900px;
    margin: 20px auto 0;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-color);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1000px;
    padding: 0 20px 18px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.use-case {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 18px;
    border: 1px solid var(--border-color);
}

.use-case h4 {
    color: var(--text-color);
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Tips List */
.tips-list {
    margin: 20px 0;
}

.tip-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.tip-item h3 {
    color: var(--text-color);
    font-size: 1.05rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tip-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Related Tools Section */
.related-tools {
    background: var(--bg-secondary);
    padding: 0;
    margin: 0;
}

.related-tools .container {
    padding: 35px 20px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.related-tool-card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.tool-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.related-tool-card h3 {
    color: var(--text-color);
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.related-tool-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    margin: 0;
    padding: 0;
}

.cta-section .container {
    padding: 40px 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 1.85rem;
    margin: 0 0 15px 0;
}

.cta-section p {
    color: white;
    font-size: 0.98rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .seo-section .container {
        padding: 25px 15px;
    }
    
    .faq-section .container,
    .related-tools .container,
    .cta-section .container {
        padding: 30px 15px;
    }
    
    .benefits-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .seo-section h2 {
        font-size: 1.5rem;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode */
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .use-case,
[data-theme="dark"] .related-tool-card,
[data-theme="dark"] .tip-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #357ABD 0%, #6B5AC7 100%);
}



.user-location-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(0, 150, 255, 0.12);
    color: #0077cc;
    vertical-align: middle;
    white-space: nowrap;
}
