﻿/* Header Styling */
.header {
    padding: 1rem;
}

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

/* Left Section: Logo */
.left-section .logo {
    max-height: 180px;
    width: auto;
    height: auto;
}

/* Value Proposition Section */
.value-prop-section {
    background: url('/images/value-prop-bg.png') center center / cover no-repeat;
    padding: 2rem 1rem;
    border-radius: 1rem;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.value-prop-overlay {
    background-color: rgba(255, 255, 255, 0.94);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value-prop-text {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Center Section: Promo Text */
.center-section .promo-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d0047;
    background: linear-gradient(to right, #f0e6f5, #f5f0f8);
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    line-height: 1.4;
    transition: all 0.3s ease-in-out;
}

/* Right Section: Buttons + Language Selector */
.right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons Styling */
.btn-primary,
.btn-secondary {
    padding: 0.4rem 0.8rem;
}

/* Hero Section Layout */
.hero .row {
    display: flex;
    align-items: center;
    margin: 0;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero p.lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-height: 300px;
    margin: 1rem 0;
}

/* Promo Banner Section */
.promo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    background-color: #f1f1f1;
    margin-top: 1rem;
}

    /* Promo Video */
    .promo-banner video {
        max-width: 700px;
        width: 100%;
        border-radius: 0.5rem;
    }

.promo-text h2 {
    font-size: 1.5rem;
    color: #2d0047;
    text-align: center;
    margin-bottom: 1rem;
}

.promo-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* Trusted Marketplaces */
.trusted-marketplaces {
    padding: 2rem 1rem;
}

.trusted-marketplaces img {
    height: 30px;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .right-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .right-section a {
        width: 100%;
        max-width: 300px;
    }

    .promo-text h2 {
        font-size: 1.2rem;
        margin: 1rem 0;
    }

    .promo-image img {
        max-width: 100%;
        margin: 1rem 0;
    }

    .hero .row {
        flex-direction: column;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p.lead {
        font-size: 0.95rem;
    }

    .hero img {
        max-height: 250px;
    }

    .value-prop-section {
        padding: 1.5rem 1rem;
    }

    .value-prop-overlay {
        padding: 1rem;
    }

    .value-prop-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p.lead {
        font-size: 0.9rem;
    }

    .hero img {
        max-height: 200px;
    }

    .value-prop-text {
        font-size: 0.95rem;
    }

    .promo-message {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
}

/* Additions for Rakuten style */
.header, .header-content, .value-prop-section, .promo-banner, .modal-content {
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(45,0,71,0.1);
}

input.form-control, select.form-control, textarea.form-control {
    border-radius: 0.75rem;
    border: 1.5px solid #2d0047;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    padding: 0.5em 1em;
    transition: border 0.2s;
}

input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
    border-color: #4a0072;
    outline: none;
}

label {
    font-weight: 700;
    color: #2d0047;
    letter-spacing: 0.01em;
}

.alert-danger {
    border-radius: 0.75rem;
    font-weight: 600;
    background: #f0e6f5;
    color: #2d0047;
    border: 1.5px solid #2d0047;
}

/* Hero Video */
.hero-media {
    width: 100%;
    object-fit: cover;
}

/* Feature Icons */
.feature-icon {
    height: 48px;
    margin-bottom: 0.5rem;
}

/* How It Works Video */
.how-it-works-video {
    max-width: 300px;
    width: 100%;
}

/* RTL Support for Starting Page - Conservative approach */
[dir="rtl"] .firtsline-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .firtsline-innerh_right {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .custom-navbar-btn {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .custom-navbar-btn:last-child {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .custom-navbar-lang {
    margin-left: 0;
    margin-right: 8px;
}

/* RTL Text Alignment */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    text-align: right;
}

[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] div {
    text-align: right;
}

/* Mobile RTL - Centered approach to prevent distortion */
@media (max-width: 768px) {
    [dir="rtl"] {
        text-align: center;
    }
    
    [dir="rtl"] .firtsline-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0.5rem !important;
    }
    
    [dir="rtl"] .logo {
        margin: 0 auto !important;
    }
    
    [dir="rtl"] .firtsline-innerh_right {
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    [dir="rtl"] .custom-navbar-btn,
    [dir="rtl"] .custom-navbar-lang {
        margin: 0.25rem 0 !important;
        width: 100% !important;
        max-width: 200px !important;
    }
}
