/* ===================================
   Discover Japan - Main Stylesheet
   Clean, minimalist design inspired by Kikka Hirado
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --white: #FFFFFF;
    --black: #2C2C2C;
    --gray-light: #E8E8E8;
    --gray-medium: #999999;
    --brown-accent: #8B7355;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--black);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    color: var(--gray-medium);
    background: transparent;
}

.lang-btn.active {
    color: var(--white);
    background: var(--brown-accent);
}

.lang-btn:hover {
    background: var(--gray-light);
}

.lang-btn.active:hover {
    background: var(--brown-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

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

.my-trip-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trip-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brown-accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--black);
}

@media (max-width: 968px) {
    .header .container {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .language-selector {
        gap: 6px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brown-accent);
    color: var(--white);
}

.btn-primary:hover {
    background: #6d5941;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--brown-accent);
    border: 2px solid var(--brown-accent);
}

.btn-secondary:hover {
    background: var(--brown-accent);
    color: var(--white);
}

.btn-primary.large {
    padding: 20px 50px;
    font-size: 18px;
}

/* ===== Section Styles ===== */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 60px;
}

/* ===== Destinations Section ===== */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.destination-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.card-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover .card-image img,
.destination-card:hover .card-image video {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.card-content p {
    color: var(--gray-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brown-accent);
    font-weight: 500;
}

.card-link:hover {
    gap: 12px;
}

/* ===== Restaurant Section ===== */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.restaurant-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.restaurant-card:hover {
    box-shadow: 0 10px 30px var(--shadow);
}

.add-to-trip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--brown-accent);
    z-index: 10;
    transition: var(--transition);
}

.add-to-trip-btn:hover {
    transform: scale(1.1);
    background: var(--brown-accent);
    color: var(--white);
}

.add-to-trip-btn.added {
    background: var(--brown-accent);
    color: var(--white);
}

.add-to-trip-btn.added i {
    font-weight: 900;
}

.add-to-trip-btn.large {
    position: static;
    width: auto;
    height: auto;
    padding: 12px 24px;
    border-radius: 25px;
    gap: 8px;
    display: inline-flex;
}

.card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-light);
    color: var(--black);
    border-radius: 15px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.rating .stars {
    color: #FFB400;
    font-size: 16px;
}

.rating .score {
    color: var(--black);
    font-weight: 600;
    margin-left: 5px;
}

.rating span {
    color: var(--black);
    font-weight: 600;
    margin-left: 5px;
}

.location, .price {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-medium);
    font-size: 14px;
    margin-bottom: 10px;
}

.description {
    margin: 20px 0;
    line-height: 1.6;
}

/* ===== Ad Space ===== */
.ad-space {
    margin: 40px 0;
    text-align: center;
}

.ad-label {
    font-size: 12px;
    color: var(--gray-medium);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 10px;
    color: var(--gray-medium);
    font-size: 14px;
    border: 2px dashed #ccc;
}

.ad-horizontal {
    max-width: 728px;
    margin: 40px auto;
}

/* ===== Experience Section ===== */
.experience-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.experience-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-light);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.experience-content h3 {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.experience-content p {
    color: var(--gray-medium);
    margin-bottom: 30px;
    line-height: 1.8;
}

.experience-highlights {
    list-style: none;
    margin-bottom: 30px;
}

.experience-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--black);
}

.experience-highlights i {
    color: var(--brown-accent);
    font-size: 18px;
}

.experience-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .experience-featured {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== Affiliate Section ===== */
.affiliate-section {
    margin-top: 80px;
    padding: 60px;
    background: var(--gray-light);
    border-radius: 20px;
    text-align: center;
}

.affiliate-section h3 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    font-family: 'Noto Serif JP', serif;
}

.affiliate-section p {
    color: var(--gray-medium);
    margin-bottom: 40px;
}

.affiliate-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.affiliate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 40px;
    background: var(--white);
    border-radius: 15px;
    transition: var(--transition);
    min-width: 150px;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.affiliate-card i {
    font-size: 36px;
    color: var(--brown-accent);
}

.affiliate-card span {
    font-weight: 500;
    color: var(--black);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
}

.cta-section p {
    font-size: 18px;
    color: var(--gray-medium);
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--gray-light);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray-light);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--brown-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-medium);
    font-size: 14px;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 500;
}

.modal-close {
    font-size: 30px;
    color: var(--gray-medium);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--black);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .destinations-grid,
    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .affiliate-section {
        padding: 40px 20px;
    }
    
    .experience-cta {
        flex-direction: column;
    }
}