/* Arizona Hello World - Custom Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #140d1a;
    --bg-twilight: #24142c;
    --primary-terracotta: #d85c27;
    --primary-light: #f5844c;
    --sunset-pink: #c84379;
    --sunset-purple: #7a3193;
    --cactus-green: #388e3c;
    --cactus-light: #4caf50;
    --gold: #ffb300;
    --gold-light: #ffd54f;
    --text-light: #f5efe6;
    --text-muted: #bfaabf;
    --card-bg: rgba(30, 18, 36, 0.7);
    --card-border: rgba(216, 92, 39, 0.2);
    --card-glow: rgba(122, 49, 147, 0.3);
    --font-primary: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at top right, var(--bg-twilight) 0%, var(--bg-dark) 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-terracotta);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Header/Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/arizona_sunset.jpg') no-repeat center center;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.65) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(20, 13, 26, 0.2) 0%,
        rgba(20, 13, 26, 0.95) 95%,
        var(--bg-dark) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(216, 92, 39, 0.2);
    border: 1px solid rgba(216, 92, 39, 0.4);
    color: var(--gold-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}

.state-badge span {
    animation: pulseFact 2s infinite ease-in-out;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 20%, var(--gold-light) 60%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: -100px auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 4;
}

/* Grid Sections */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Cards styling */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 92, 39, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 30px var(--card-glow),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--primary-terracotta);
    padding-left: 0.75rem;
}

/* Greet Interactive Form */
.greet-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
}

input[type="text"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(20, 13, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(20, 13, 26, 0.95);
    box-shadow: 0 0 15px rgba(218, 92, 39, 0.2);
}

.btn {
    background: linear-gradient(135deg, var(--primary-terracotta) 0%, var(--sunset-pink) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(216, 92, 39, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 92, 39, 0.5);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--sunset-pink) 100%);
}

.btn:active {
    transform: translateY(1px);
}

.greeting-result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(122, 49, 147, 0.15);
    border: 1px dashed rgba(122, 49, 147, 0.4);
    border-radius: 12px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gold-light);
    animation: fadeIn 0.5s ease-out;
}

/* Fact Card */
.fact-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fact-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.fact-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Arizona Info section */
.info-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sunset-purple);
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 4;
}

.footer-decor {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.3em;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* Keyframes animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseFact {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.96); }
}

/* Loading effect class */
.fade-out-in {
    animation: fadeOutIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeOutIn {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Weather Widget Styles */
.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    transition: var(--transition-smooth);
}

.weather-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(216, 92, 39, 0.3);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.weather-city-name {
    font-weight: 600;
    color: var(--text-light);
}

.weather-condition-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.weather-temp-box {
    text-align: right;
}

.weather-temp-f {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.weather-temp-c {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Theme Selector Styles */
.theme-selector {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    background: rgba(20, 13, 26, 0.6);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.theme-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-btn:hover {
    transform: scale(1.18);
}

.theme-btn.active {
    border-color: var(--text-light);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Sunset Theme Variations */
body.theme-sunset {
    --bg-dark: #140d1a;
    --bg-twilight: #24142c;
    --primary-terracotta: #d85c27;
    --primary-light: #f5844c;
    --sunset-pink: #c84379;
    --sunset-purple: #7a3193;
    --card-border: rgba(216, 92, 39, 0.2);
    --card-glow: rgba(122, 49, 147, 0.3);
}

body.theme-golden-hour {
    --bg-dark: #160f0c;
    --bg-twilight: #2d180b;
    --primary-terracotta: #d35400;
    --primary-light: #f39c12;
    --sunset-pink: #f1c40f;
    --sunset-purple: #e67e22;
    --card-border: rgba(211, 84, 0, 0.25);
    --card-glow: rgba(243, 156, 18, 0.15);
}

body.theme-twilight {
    --bg-dark: #07050d;
    --bg-twilight: #130a21;
    --primary-terracotta: #8e44ad;
    --primary-light: #9b59b6;
    --sunset-pink: #5b2c6f;
    --sunset-purple: #2e0854;
    --card-border: rgba(142, 68, 173, 0.25);
    --card-glow: rgba(91, 44, 111, 0.2);
}

body.theme-cactus {
    --bg-dark: #08110b;
    --bg-twilight: #0f2416;
    --primary-terracotta: #27ae60;
    --primary-light: #2ecc71;
    --sunset-pink: #117a65;
    --sunset-purple: #0b5345;
    --card-border: rgba(39, 174, 96, 0.25);
    --card-glow: rgba(17, 122, 101, 0.2);
}

/* Guestbook Badges */
.visitor-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    animation: fadeIn 0.4s ease-out;
}

.visitor-badge:hover {
    background: rgba(216, 92, 39, 0.15);
    border-color: rgba(216, 92, 39, 0.4);
    transform: translateY(-1px);
}
