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

/* CSS Variables - Logo renkleriyle uyumlu */
:root {
  --primary-color: #2563a8;
  --secondary-color: #ff8c1a;
  --bg-dark: #000000;
  --bg-gradient-start: #000000;
  --bg-gradient-end: #0f1419;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* Noscript Message */
.noscript-message {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4444;
  color: white;
  padding: var(--spacing-md);
  text-align: center;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Header */
header {
  text-align: center;
  max-width: 700px;
  padding: var(--spacing-sm);
}

header h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

header p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Logo Container */
.logo-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  width: 100%;
  height: auto;
  max-width: 550px;
  object-fit: contain;
}

/* Countdown */
.countdown {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  min-width: 100px;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-unit .number {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1;
  font-family: 'Courier New', monospace;
  color: var(--secondary-color);
}

.time-unit .label {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Responsive Design - Mobile First */

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
  .container {
    padding: var(--spacing-sm);
    gap: var(--spacing-md);
  }

  .countdown {
    gap: var(--spacing-sm);
  }

  .time-unit {
    min-width: 80px;
    padding: var(--spacing-sm);
  }

  .logo-container {
    max-width: 280px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    gap: var(--spacing-md);
  }

  .countdown {
    gap: var(--spacing-lg);
  }

  .time-unit {
    min-width: 120px;
    padding: var(--spacing-md) var(--spacing-lg);
  }

  header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: var(--spacing-lg);
  }

  .countdown {
    gap: var(--spacing-xl);
  }

  .time-unit {
    min-width: 140px;
    padding: var(--spacing-lg);
  }

  .logo-container {
    max-width: 650px;
  }
}

/* Extra large devices (large desktops, 1440px and up) */
@media (min-width: 1440px) {
  .time-unit {
    min-width: 160px;
  }
}

/* Animations */

/* Logo pulse/glow animation */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 140, 26, 0.3));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(255, 140, 26, 0.5));
  }
}

.logo-container img {
  animation: logoPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 40px rgba(255, 140, 26, 0.6));
}

/* Countdown number transitions */
.time-unit .number {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-unit {
  transition: all 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 140, 26, 0.3);
}

/* Background animated gradient */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #1a0f2e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Fade in animation on load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeIn 0.8s ease-out backwards;
}

header {
  animation-delay: 0.1s;
}

.logo-container {
  animation-delay: 0.3s;
}

.countdown {
  animation-delay: 0.5s;
}

/* Animations */

/* Logo pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.5));
  }
}

.logo-container img {
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

/* Number transition */
.time-unit .number {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Time unit hover effect */
.time-unit {
  transition: all 0.3s ease;
}

.time-unit:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 140, 0, 0.3);
}

/* Background animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end), #16213e);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Fade in animation on load */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeIn 0.8s ease-out forwards;
}

.container > *:nth-child(1) {
  animation-delay: 0.1s;
}

.container > *:nth-child(2) {
  animation-delay: 0.3s;
}

.container > *:nth-child(3) {
  animation-delay: 0.5s;
}

.container > *:nth-child(4) {
  animation-delay: 0.7s;
}
