/*
Theme Name: Karthick Wedding Theme
Theme URI: https://example.com/
Author: Karthick
Author URI: https://example.com/
Description: A wedding invitation theme with video, countdown, map, RSVP, and thank you message.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karthick-wedding
*/


/*
Theme Name: Karthick Wedding Theme
Theme URI: https://example.com/karthick-wedding-theme
Author: ChatGPT for Karthick
Author URI: https://example.com
Description: A mobile-friendly single-page wedding invitation WordPress theme with autoplay video, background music, countdown, address+map, RSVP, and thanks section.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karthick-wedding
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images
*/

/* Base resets */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; color: #1a1a1a; }
img { max-width: 100%; height: auto; }

:root {
  --purple: #6d28d9;
  --purple-dark: #5b21b6;
  --bg: #ffffff;
  --muted: #6b7280;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section h2 { font-size: 32px; margin: 0 0 16px; color: var(--purple-dark); text-align: center; }
.section p { font-size: 16px; color: #333; }

/* Hero video */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; background: #000; }
.hero video { width: 100%; height: 100%; object-fit: cover; }
.hero .overlay-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); }
.hero .title { position: absolute; bottom: 32px; left: 0; right: 0; text-align: center; color: #fff; font-size: 28px; font-weight: 600; letter-spacing: .5px; padding: 0 16px; }

/* Countdown */
.countdown { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.countdown .unit { background: #f3e8ff; padding: 12px 16px; border-radius: 16px; min-width: 70px; text-align: center; }
.countdown .num { display: block; font-size: 28px; font-weight: 700; color: var(--purple-dark); }
.countdown .lbl { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Address + map */
.address-map { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.address { background: #faf5ff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(109,40,217,0.08); }
.address h3 { margin-top: 0; color: var(--purple-dark); }
.map iframe { width: 100%; min-height: 320px; border: 0; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }

/* RSVP */
.rsvp { background: #ffffff; border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.rsvp form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rsvp form .full { grid-column: 1 / -1; }
.rsvp label { display: block; font-size: 14px; color: #374151; margin-bottom: 6px; }
.rsvp input, .rsvp select, .rsvp textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; }
.rsvp button { appearance: none; border: 0; background: var(--purple); color: #fff; padding: 12px 18px; border-radius: 9999px; font-weight: 600; cursor: pointer; transition: transform .08s ease, background .2s ease; }
.rsvp button:hover { background: var(--purple-dark); }
.rsvp .radio-group { display: flex; gap: 16px; align-items: center; }

/* Thanks */
.thanks { background: linear-gradient(135deg, #7c3aed, #a78bfa); color: #fff; text-align: center; padding: 80px 16px; border-radius: 24px; position: relative; overflow: hidden; }
.hearts { position: absolute; inset: 0; pointer-events: none; }
.heart { position: absolute; font-size: 18px; opacity: .7; animation: float 8s linear infinite; }
@keyframes float { 0% { transform: translateY(20px); opacity: 0.2; } 50% { opacity: 0.8; } 100% { transform: translateY(-120%); opacity: 0; } }

/* Smooth scrolling anchor style */
.nav { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.nav a { background: #111827; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 9999px; font-size: 12px; opacity: .85; }
.nav a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .address-map { grid-template-columns: 1fr; }
  .rsvp form { grid-template-columns: 1fr; }
  .hero .title { font-size: 22px; }
}
