/* TRI-CULTURAL FUSION VARIABLES */
:root {
    --bg-dark: #fbfbfb;
    --text-main: #2d3748;
    --text-muted: #718096;
    
    /* Turkish Turquoise */
    --c-turquoise: #40E0D0;
    --c-turquoise-hover: #35c4b5;
    
    /* Spanish Inspired */
    --c-terracotta: #E2725B;
    --c-golden: #F4A460;
    
    /* New Zealand Inspired */
    --c-fern: #4F7942;
    --c-fern-light: #e6efe8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #f7f9fa;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lang-btn {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}
.lang-btn .flag, .lang-btn .flag-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
}
.lang-btn .flag {
    font-size: 1.5rem;
    line-height: 1;
}
.lang-btn .flag-img {
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.lang-btn.active {
    background: var(--c-turquoise);
    color: #fff;
}

/* Photo Upload Section */
.photo-upload-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.photo-upload-section h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.photo-upload-section h4 i {
    color: var(--c-fern);
}
.photo-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.upload-btn {
    align-self: flex-start;
    background: var(--c-fern);
    color: #fff;
    margin-top: 0.25rem;
}

/* i18n Logic */
body[lang="tr"] .i18n-en, body[lang="tr"] .i18n-ca { display: none !important; }
body[lang="en"] .i18n-tr, body[lang="en"] .i18n-ca { display: none !important; }
body[lang="ca"] .i18n-tr, body[lang="ca"] .i18n-en { display: none !important; }

/* Subtler Geometric Mosaic Pattern via CSS */
.mosaic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.4;
    background-image:  linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), linear-gradient(30deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), linear-gradient(150deg, #e2e8f0 12%, transparent 12.5%, transparent 87%, #e2e8f0 87.5%, #e2e8f0), linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1), linear-gradient(60deg, #cbd5e1 25%, transparent 25.5%, transparent 75%, #cbd5e1 75%, #cbd5e1);
    background-size: 20px 35px;
    background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(226, 114, 91, 0.05) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: 50vh;
    align-items: center;
}

.glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--c-terracotta);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Widgets */
.widgets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.widget {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    flex: 1;
    min-width: 250px;
    border-top: 3px solid var(--c-turquoise);
}

.widget-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: lowercase;
}

.weather-data {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--c-golden);
}

/* Calendar Widget */
.calendar-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 1.5rem;
    max-width: 320px;
}

.glass-container-small {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.cal-title {
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    padding: 0.5rem 0;
    transition: all 0.2s;
    font-size: 1rem;
    border: 1px solid transparent;
}

.cal-day .m {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: -2px;
}

.cal-day:hover {
    background: var(--c-turquoise);
    color: #fff;
    border-color: var(--c-turquoise-hover);
    transform: scale(1.05);
}

.cal-day:hover .m {
    color: #fff;
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--c-terracotta);
    border-radius: 2px;
}

/* Accordion Cards */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    scroll-margin-top: 120px;
}

.day-card:hover {
    box-shadow: var(--shadow-hover);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 1rem;
    position: relative;
    user-select: none;
}

.day-badge {
    background: var(--c-turquoise);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nature-badge {
    background: var(--c-fern);
}

.header-info {
    flex-grow: 1;
}

.header-info .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.header-info h3 {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.2;
}

.chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.day-card.active .chevron {
    transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #fafafa;
}

.day-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.content-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.icon-accent { color: var(--c-terracotta); margin-top: 0.25rem; font-size: 1.1rem; }
.icon-nature { color: var(--c-fern); margin-top: 0.25rem; font-size: 1.1rem; }

/* Location Tags */
.loc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(64, 224, 208, 0.1);
    color: var(--c-turquoise-hover);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.4rem;
    margin-right: 0.4rem;
    transition: all 0.2s;
}
.loc-tag:hover {
    background: var(--c-turquoise);
    color: #fff;
}

/* Historical Info Box */
.history-box {
    background: rgba(226, 114, 91, 0.05);
    border-left: 4px solid var(--c-terracotta);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-box h4 {
    color: var(--c-terracotta);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-link {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: 600;
}

.history-link:hover {
    color: var(--c-terracotta);
}

/* Buttons */
.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-primary { background: var(--c-turquoise); color: #fff; }
.btn-secondary { background: var(--c-golden); color: #fff; }
.btn-nature { background: var(--c-fern); color: #fff; }
.btn-route { background: var(--c-terracotta); color: #fff; }

/* Voting System */
.voting-section {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0,0,0,0.15);
    background: rgba(244, 164, 96, 0.05); 
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.voting-section h4 {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voting-section h4 i {
    color: var(--c-terracotta);
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vote-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.vote-label:hover {
    background: rgba(64, 224, 208, 0.05);
    border-color: rgba(64, 224, 208, 0.3);
}

.vote-label input[type="radio"] {
    accent-color: var(--c-turquoise);
    width: 18px;
    height: 18px;
}

.result-bar {
    margin-bottom: 1rem;
}

.result-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.percent {
    color: var(--c-terracotta);
    font-weight: 700;
}

.bar-bg {
    background: rgba(0,0,0,0.05);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    background: linear-gradient(90deg, var(--c-golden), var(--c-terracotta));
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-thanks {
    font-size: 0.95rem;
    color: var(--c-fern);
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .calendar-nav {
        position: static;
        max-width: 100%;
        margin: 1rem;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 600px) {
    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 2.25rem; }
    .glass-container { padding: 1.5rem; }
    .accordion-header { padding: 1rem; }
    .header-info h3 { font-size: 1.1rem; }
    .day-badge { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
    .actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

/* Add option UI */
.add-option-ui {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.new-opt-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.new-opt-input:focus {
    outline: none;
    border-color: var(--c-turquoise);
}
.btn-add-opt {
    padding: 0.5rem 1rem;
}
