/* General Styles from johor.html */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #ffd700;
  --light: #f1f1f1;
  --text: #333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-johor {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%),
                  url('https://blogger.googleusercontent.com/img/a/AVvXsEjgMpIbelAHhCBb6c90PIdoLSNsK2i3K4QTab4oZ1jHBnbufpSdGXjakKiJSjWAbV2p0BCJv333t7hqBqsNLjNAh1H-ZqSzWSLxEkuiek8YLZCUNR_iu02RHe368xYKBEWSlQbtC5hsMJIHMrBp-grsDWskKpY4lQxmyzFda3L47NJLaKJJfN8Tlm8-Ag=w640-h480') center/cover no-repeat;
}

.hero-penang {
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(15, 52, 96, 0.85)), 
                  url('https://blogger.googleusercontent.com/img/a/AVvXsEgpjIpDV26VLSGb6LI22TzE5n1dmoPAcWjiRvaGhydHrXlnCDq5Rajt8B-Fy7LcGAe6a8waqoMzgF1LLlttGBOXHUnGBq_6KVIPrNAr6jPzWJvIdDPycFVp4Yzpwe5d0HQqWUQmvGQy_crJj4ntrr5x5-wPDgMAs6lASJR01idM4lfv1bqLhRs=w640-h360') center/cover;
}

.hero-pahang {
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(15, 52, 96, 0.85)), 
                  url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0f3U8UxZ0QoTMpneSH-msnMT7yM5e5QP-QHi5C34qXR2yZBlJcAUG435wb6Td43Uru7C7owAQKGcqsAPTtGcdQlC1UDUJhlBVbW5c0Qz_ZkbeFkQLSGU_AUmbkc0MJaTylPAg0lS95AN3AYy3295Wr3lxk5A_c1D6XFBKr6YHsexZHjTWY1U/w640-h360/pahang.jpg') center/cover;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -55%) rotate(5deg); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 1000px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold) 0%, #fff 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-date {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--primary);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Schedule */
.schedule-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.schedule-date {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
}

.schedule-date .day {
  font-size: 2rem;
  display: block;
}

.schedule-date .month {
  font-size: 0.9rem;
  opacity: 0.8;
}

.schedule-details h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Prizes */
.prize-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.prize-card::before {
  content: '♔';
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.prize-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin: 1rem 0;
}

.prize-list {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-item:last-child {
  border-bottom: none;
}

/* Registration Info */
.info-box {
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(255, 215, 0, 0.1));
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem 0;
}

.info-box strong {
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll reveal effect */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Styles from index.html */
.calendar-view {
    background-color: #f5f7fa;
    color: #333;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.content {
    padding: 20px;
}

.calendar-container {
    margin-bottom: 25px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.calendar th {
    background-color: #2a5298;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.calendar td {
    width: 14.28%;
    height: 60px;
    padding: 5px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    position: relative;
}

.day-number {
    font-weight: bold;
    font-size: 0.9rem;
}

.empty {
    background-color: #f0f0f0;
}

.pahang {
    background-color: #4a90e2;
    border-left: 3px solid #4a90e2;
}

.penang {
    background-color: #2ecc71;
    border-left: 3px solid #2ecc71;
}

.johor {
    background-color: #9b59b6;
    border-left: 3px solid #9b59b6;
}

.pahang .day-number, .penang .day-number, .johor .day-number {
    color: white;
}

.pahang:hover, .penang:hover, .johor:hover {
    opacity: 0.8;
    cursor: pointer;
}

.tournament-label {
    font-size: 0.65rem;
    padding: 1px 3px;
    border-radius: 2px;
    color: white;
    margin-top: 3px;
    display: inline-block;
}

.pahang-label {
    background-color: #4a90e2;
}

.penang-label {
    background-color: #2ecc71;
}

.johor-label {
    background-color: #9b59b6;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.pahang-color {
    background-color: #4a90e2;
}

.penang-color {
    background-color: #2ecc71;
}

.johor-color {
    background-color: #9b59b6;
}

.month-year {
    text-align: center;
    font-size: 1.5rem;
    color: #2a5298;
    margin: 12px 0;
    font-weight: 600;
}

.notes {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.notes h3 {
    color: #2a5298;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.notes ul {
    padding-left: 20px;
    margin-top: 8px;
}

.notes li {
    margin-bottom: 5px;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 25px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .calendar-view {
        padding: 10px;
    }
    
    .calendar td {
        height: 50px;
        padding: 3px;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .tournament-label {
        display: none;
    }
    
    header {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
}