/* Made by Utku Gökyer */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #f093fb;
    --accent: #4facfe;
    --bg: #f0f2f8;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Particle Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    opacity: 0.05;
}

#particles-bg > div {
    will-change: transform;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.section.active {
    display: block;
}

/* ===== CLOCK SECTION ===== */
.clock-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.digital-clock {
    background: var(--card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.digital-clock:hover {
    box-shadow: var(--shadow-hover);
}

.time-wrapper {
    margin-bottom: 1.5rem;
}

.time-display {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-align: center;
}

.separator {
    animation: blink 1s infinite;
    color: var(--primary);
}

.date-display {
    text-align: center;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timezone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.location-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Manual Time Controls */
.manual-time-controls {
    margin-top: 1.5rem;
}

.manual-time-controls h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1rem;
}

.time-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.time-inputs input {
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    font-family: 'Orbitron', monospace;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.time-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.set-time-btn {
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.set-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Analog Clock */
.analog-clock {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clock-face {
    width: 320px;
    height: 320px;
    background: var(--card);
    border-radius: 50%;
    box-shadow: var(--shadow), inset 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.clock-face:hover {
    box-shadow: var(--shadow-hover), inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    background: var(--primary);
    transform-origin: bottom center;
    border-radius: 3px;
    will-change: transform;
}

.hour-hand {
    width: 6px;
    height: 70px;
    margin-left: -3px;
    background: var(--primary-dark);
}

.minute-hand {
    width: 4px;
    height: 100px;
    margin-left: -2px;
}

.second-hand {
    width: 2px;
    height: 110px;
    margin-left: -1px;
    background: var(--accent);
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Time Details */
.time-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-card {
    background: var(--card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.detail-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.detail-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.sun-info {
    display: flex;
    justify-content: space-around;
}

.sun-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.sun-item i {
    color: var(--accent);
}

.weather-info::before {
    content: '🚧 Yakında eklenecek';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    font-weight: 600;
}

.weather-info {
    margin-top: 20px;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.weather-icon {
    font-size: 2.5rem;
    color: #fbbf24;
}

.temperature {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: var(--text);
}

.weather-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== CALENDAR SECTION ===== */
.calendar-wrapper {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.calendar-nav-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
}

.calendar-view {
    min-height: 450px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    min-height: 380px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    background: var(--bg);
    will-change: transform;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

/* ===== WORLD CLOCKS SECTION ===== */
.world-map-container {
    background: var(--card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.world-map {
    height: 300px;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
}

.world-map::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(148, 163, 184, 0.25) 0%, transparent 100%);
    border-radius: 0 0 15px 15px;
}

.world-map::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.2) 50%, transparent 100%);
}

.timezone-marker {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    min-width: 120px;
    z-index: 10;
}

.timezone-marker:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timezone-marker span:first-child {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.timezone-time {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--primary) !important;
    font-weight: 700;
}

.world-clocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.world-clock-item {
    background: var(--card);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.world-clock-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.world-clock-item h4 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1rem;
}

.world-clock-item .time {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.world-clock-item .date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== TOOLS SECTION ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.tool-card {
    background: var(--card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.tool-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

/* Stopwatch */
.stopwatch-display {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin: 2rem 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

/* Countdown */
.countdown-display {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin: 1.5rem 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.countdown-inputs input {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.countdown-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.countdown-inputs input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.countdown-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

/* Pomodoro */
.pomodoro-display {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary);
    margin: 1.5rem 0;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pomodoro-modes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.mode-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 600;
}

.mode-btn:hover {
    border-color: var(--primary);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}

/* Tool Buttons */
.tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    will-change: transform;
}

.tool-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.tool-btn:active {
    transform: scale(0.95);
}

/* Time Zone Converter */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.converter-form select,
.converter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.converter-form select:focus,
.converter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.arrow-down {
    text-align: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.converted-time {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 10px;
    color: var(--primary);
    font-weight: 700;
    margin-top: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Responsive */
@media (max-width: 1200px) {
    .clock-container {
        grid-template-columns: 1fr;
    }
    
    .analog-clock {
        height: 350px;
    }
    
    .time-details {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .time-display {
        font-size: 2.5rem;
    }
    
    .clock-face {
        width: 280px;
        height: 280px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .countdown-inputs {
        gap: 0.5rem;
    }
    
    .countdown-inputs input {
        padding: 0.75rem;
    }
    
    .calendar-wrapper {
        padding: 1.5rem;
    }
    
    .calendar-grid {
        min-height: 320px;
    }
    
    .world-map {
        height: auto;
        min-height: 400px;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .timezone-marker {
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }
}
/* Made by Utku Gökyer */
/* Made by Utku Gökyer */