:root {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #374151;
    --bg-card: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --accent-blue: #4299e1;
    --accent-purple: #9f7aea;
    --accent-gold: #d4a84b;
    --accent-gold-bright: #ecc94b;
    --accent-teal: #38b2ac;
    --banner-cream: #f5e6c8;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-gold: linear-gradient(135deg, var(--accent-gold), #f6ad55);
    --gradient-banner: linear-gradient(135deg, #d4a84b, #c9963c, #d4a84b);
    --shadow-glow: 0 0 30px rgba(66, 153, 225, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 168, 75, 0.4);
    --border-radius: 12px;
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-chinese: 'Noto Sans SC', system-ui, sans-serif;
}

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

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(66, 153, 225, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 80%, rgba(159, 122, 234, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 168, 75, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, #151a25 100%);
    pointer-events: none;
    z-index: 0;
}

.floating-buildings {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.building {
    position: absolute;
    background: linear-gradient(180deg, rgba(66, 153, 225, 0.05) 0%, transparent 100%);
    border-radius: 4px 4px 0 0;
    animation: float 20s ease-in-out infinite;
}

.b1 { width: 40px; height: 120px; left: 5%; bottom: -20px; animation-delay: 0s; }
.b2 { width: 60px; height: 180px; right: 8%; bottom: -20px; animation-delay: -7s; }
.b3 { width: 35px; height: 100px; left: 15%; bottom: -20px; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(1deg); opacity: 0.5; }
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(45, 55, 72, 0.9) 0%, transparent 100%);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(212, 168, 75, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.city-icon-container {
    width: 60px;
    height: 50px;
    position: relative;
}

.city-layers {
    width: 100%;
    height: 100%;
    position: relative;
}

.layer {
    position: absolute;
    width: 100%;
    height: 12px;
    border-radius: 3px;
    left: 0;
}

.layer-1 { bottom: 0; background: linear-gradient(90deg, #8B6914, #a67c1a); }
.layer-2 { bottom: 14px; background: linear-gradient(90deg, #CD853F, #d9a066); width: 90%; left: 5%; }
.layer-3 { bottom: 28px; background: linear-gradient(90deg, #708090, #8899a8); width: 80%; left: 10%; }
.layer-4 { bottom: 42px; background: var(--gradient-primary); width: 70%; left: 15%; box-shadow: 0 0 10px rgba(66, 153, 225, 0.5); }

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.logo-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.subtitle-local {
    font-family: var(--font-chinese);
    color: var(--accent-gold);
    font-size: 0.85rem !important;
    opacity: 0.9;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Input section */
.input-section {
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.05);
    border: 2px solid rgba(212, 168, 75, 0.3);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 40px rgba(212, 168, 75, 0.5);
}

.search-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    outline: none;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-display);
}

.generate-btn {
    background: var(--gradient-gold);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    color: #1a202c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.btn-text-local {
    font-family: var(--font-chinese);
    font-size: 0.75rem;
    opacity: 0.8;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(212, 168, 75, 0.2);
    z-index: 100;
}

.suggestion-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: rgba(212, 168, 75, 0.15);
}

.suggestion-icon {
    opacity: 0.7;
}

.suggestion-name {
    font-weight: 600;
    flex: 1;
}

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

.example-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
    align-items: center;
}

.example-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.city-chip {
    background: var(--bg-tertiary);
    border: 1px solid rgba(212, 168, 75, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}

.chip-local {
    font-family: var(--font-chinese);
    font-size: 0.7rem;
    color: var(--accent-gold);
    opacity: 0.8;
}

.city-chip:hover:not(:disabled) {
    background: rgba(212, 168, 75, 0.2);
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.city-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.options-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    background: transparent;
    border: 1px solid rgba(212, 168, 75, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    color: var(--accent-gold);
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-arrow {
    font-size: 0.8rem;
}

.options-toggle:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 75, 0.1);
}

.options-panel {
    max-width: 700px;
    margin: 1.5rem auto 0;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    display: grid;
    gap: 1.5rem;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(212, 168, 75, 0.2);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-group h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-local {
    font-family: var(--font-chinese);
    color: var(--accent-gold);
    font-size: 0.8rem;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.opt-local {
    font-family: var(--font-chinese);
    font-size: 0.7rem;
    opacity: 0.7;
}

.option-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 75, 0.1);
}

.option-btn.active {
    background: var(--gradient-gold);
    border-color: transparent;
    color: #1a202c;
}

.option-btn.active .opt-local {
    opacity: 1;
    color: #1a202c;
}

/* Progress section */
.progress-section {
    max-width: 550px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid rgba(212, 168, 75, 0.3);
    box-shadow: var(--shadow-gold);
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-city-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.progress-building {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.progress-stages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    opacity: 0.4;
    transition: all 0.3s;
    background: var(--bg-card);
}

.progress-stage.active {
    opacity: 1;
    background: rgba(212, 168, 75, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.3);
}

.progress-stage.completed {
    opacity: 0.7;
}

.stage-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-icon {
    font-size: 1.3rem;
}

.progress-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0.3;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.3); }
}

.stage-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stage-text-en {
    font-size: 0.9rem;
    font-weight: 500;
}

.stage-text-local {
    font-family: var(--font-chinese);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stage-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold);
    color: #1a202c;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.stage-check.visible {
    opacity: 1;
    transform: scale(1);
}

.progress-bar {
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Error message */
.error-message {
    max-width: 500px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 12px;
    color: #fc8181;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-icon {
    font-size: 1.5rem;
}

.error-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.error-local {
    font-family: var(--font-chinese);
    font-size: 0.8rem;
    opacity: 0.8;
}

.retry-btn {
    background: transparent;
    border: 1px solid currentColor;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: inherit;
    font-family: var(--font-display);
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: rgba(245, 101, 101, 0.2);
}

/* Result section */
.result-section {
    margin: 2rem 0;
    animation: fadeIn 0.6s ease;
}

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

.result-container {
    display: grid;
    grid-template-columns: minmax(300px, 450px) 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .result-container {
        grid-template-columns: 1fr;
    }
}

.image-wrapper {
    position: sticky;
    top: 2rem;
}

.image-frame {
    position: relative;
    padding: 8px;
    background: var(--gradient-banner);
    border-radius: 16px;
    box-shadow: var(--shadow-gold), 0 20px 60px rgba(0,0,0,0.4);
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-gold-bright);
}

.frame-corner.tl { top: -4px; left: -4px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.frame-corner.tr { top: -4px; right: -4px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.frame-corner.bl { bottom: -4px; left: -4px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.frame-corner.br { bottom: -4px; right: -4px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.image-container {
    position: relative;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 9/16;
}

.image-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem;
    background: var(--bg-secondary);
}

.skeleton-layer {
    flex: 1;
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s;
}

.result-image.loaded {
    opacity: 1;
}

.result-info {
    padding-top: 0.5rem;
}

.result-title-section {
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-title-local {
    font-family: var(--font-chinese);
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-top: 0.25rem;
    opacity: 0.9;
}

.era-cards {
    margin-bottom: 2rem;
}

.era-cards > h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.era-title-local {
    font-family: var(--font-chinese);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.era-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-left: 4px solid var(--era-color);
    transition: all 0.2s;
}

.era-card:hover {
    background: rgba(45, 55, 72, 0.9);
    transform: translateX(4px);
}

.era-card.expanded {
    background: var(--bg-tertiary);
}

.era-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}

.era-badge {
    background: var(--era-color);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.era-icon {
    font-size: 0.9rem;
}

.era-titles {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.era-titles h4 {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.era-local-name {
    font-family: var(--font-chinese);
    font-size: 0.85rem;
    color: var(--accent-gold);
}

.era-book-name {
    font-family: var(--font-chinese);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.era-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    background: var(--bg-card);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.era-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.era-card.expanded .era-toggle {
    transform: rotate(0);
}

.era-content {
    padding: 0 1rem 1rem;
    animation: slideDown 0.3s ease;
}

.era-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.era-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.era-details h5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.era-landmarks ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.era-landmarks li {
    padding: 0.2rem 0;
}

.era-landmarks li::before {
    content: '◆ ';
    color: var(--era-color);
    font-size: 0.6rem;
}

.char-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.char-tag {
    background: var(--bg-card);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.05);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    font-size: 1.1rem;
}

.action-local {
    font-family: var(--font-chinese);
    font-size: 0.75rem;
    opacity: 0.8;
}

.action-btn.primary {
    background: var(--gradient-gold);
    color: #1a202c;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 168, 75, 0.5);
}

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
}

.action-btn.secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-blue);
}

.action-btn.tertiary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
}

.action-btn.tertiary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Gallery section */
.gallery-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 168, 75, 0.2);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gallery-header h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-title-local {
    font-family: var(--font-chinese);
    color: var(--text-muted);
    font-size: 1rem;
}

.clear-gallery-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-gallery-btn:hover {
    border-color: #fc8181;
    color: #fc8181;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    display: flex;
    flex-direction: column;
}

.gallery-city {
    font-weight: 700;
    font-size: 0.85rem;
}

.gallery-style {
    font-size: 0.7rem;
    color: var(--accent-gold);
    text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 168, 75, 0.15);
    margin-top: auto;
    background: linear-gradient(0deg, rgba(45, 55, 72, 0.5) 0%, transparent 100%);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-link {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-gold-bright);
}

.footer-divider {
    opacity: 0.3;
}

.footer-inspired {
    font-size: 0.8rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .logo-section {
        gap: 1rem;
    }
    
    .city-icon-container {
        width: 45px;
        height: 38px;
    }
    
    .layer {
        height: 9px;
    }
    
    .layer-2 { bottom: 11px; }
    .layer-3 { bottom: 22px; }
    .layer-4 { bottom: 33px; }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .subtitle-local {
        font-size: 0.75rem !important;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .search-box input {
        text-align: center;
    }
    
    .generate-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .example-cities {
        gap: 0.5rem;
    }
    
    .city-chip {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .chip-local {
        font-size: 0.65rem;
    }
    
    .result-title {
        font-size: 1.6rem;
    }
    
    .result-title-local {
        font-size: 1.1rem;
    }
    
    .era-details {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
}