@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Google+Sans:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', sans-serif;
    background-color: #0C3F22;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

h1 {
    font-family: 'Audiowide', sans-serif;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 3rem;
}

h2 {
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
}

h1 span {
    color: #28C16D;
}

p {
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.portal-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
}

footer {
    padding: 3rem 1rem 2rem;
    margin-top: auto;
    color: #6b7280;
    font-size: 0.9rem;
    background-color: #0b1118;
    border-top: 1px solid #1f2937;
    text-align: left;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #28C16D, transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.5);
}

.footer-logo {
    font-family: 'Audiowide', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-logo span {
    color: #28C16D;
}

.footer-description {
    max-width: 600px;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-middle {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-middle > div {
    text-align: center;
}

.footer-section-title {
    font-size: 1.1rem;
    color: #f9fafb;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    margin: 0 auto 1rem auto;
    text-align: center;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #28C16D;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.footer-country-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
    display: inline-block;
    text-align: left;
}

.footer-country-link::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #28C16D;
    transition: transform 0.3s ease;
}

.footer-country-link:hover {
    color: #28C16D;
    transform: translateX(5px);
}

.footer-country-link:hover::before {
    transform: scale(1.5);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(31, 41, 55, 0.5);
}

.footer-copyright {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(31, 41, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #28C16D;
    color: #ffffff;
    transform: translateY(-3px);
}

.button {
    background-color: #28C16D;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #107a59;
}

.country-selector {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.country-button {
    background-color: #28C16D;
    color: #ffffff;
    padding: 1rem 0.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.country-button:hover {
    background-color: #107a59;
    transform: scale(1.05);
}

.search-widget {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.search-form {
    display: flex;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border: 2px solid transparent;
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-right: none;
}

.search-form input[type="text"]:focus {
    outline: none;
}

.search-form button {
    background-color: #28C16D;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border: 2px solid #28C16D;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form button:hover {
    background-color: #107a59;
}

.search-title {
    font-family: 'Google Sans', sans-serif;
    font-weight: 400;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

#search-query-display {
    color: #f9fafb;
    font-weight: bold;
}

.search-item-list {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.result-item {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.result-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.result-item a {
    color: #28C16D;
    text-decoration: none;
    font-weight: bold;
}

.result-item p {
    color: #d1d5db;
    margin: 0;
    font-size: 0.95rem;
}

.main-header {
    margin-bottom: 0.5rem;
}

.intro-text {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
    color: #d1d5db;
}

.rating-display {
    color: #f9fafb;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.rating-display .star-rating {
    color: #FFD700;
    letter-spacing: 2px;
}

.rating-display .rating-value {
    font-weight: bold;
    color: #28C16D;
}

.rating-display .rating-count {
    color: #6b7280;
}

.features-list {
    max-width: 1200px;
    margin: 3rem auto;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: #1f2937;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: #28C16D;
    flex-shrink: 0;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #f9fafb;
    margin: 0 0 0.5rem 0;
}

.feature-item p {
    margin: 0;
    color: #d1d5db;
    font-size: 1rem;
}

.green-link {
    color: #28C16D;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.green-link:hover {
    color: #107a59;
    text-decoration: underline;
}

.call-to-action {
    margin-top: 3rem;
}

.main-header a {
    text-decoration: none;
}

@media (min-width: 1024px) {
    h1 { font-size: 4.5rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 1.2rem; }
    .country-selector { grid-template-columns: repeat(5, 1fr); }
    .country-button { font-size: 1.1rem; }
    .search-title { font-size: 1.5rem; }
    .result-item h3 { font-size: 1.35rem; }
    .result-item p { font-size: 1.05rem; }

    .call-to-action {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .call-to-action .country-button {
        display: inline-block;
        padding: 1rem 3rem;
        font-size: 1.2rem;
        margin: 0 auto;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-description {
        text-align: left;
    }

    .footer-middle {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-section-title {
        margin: 0 0 1rem 0;
        text-align: left;
    }

    .footer-section-title::after {
        left: 0;
        transform: none;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        margin: 0;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    p { font-size: 1rem; }
    .country-selector { grid-template-columns: repeat(3, 1fr); }
    .country-button { font-size: 1.1rem; gap: 0.75rem; }
    .search-title { font-size: 1.4rem; }
    .result-item h3 { font-size: 1.25rem; }
    .result-item p { font-size: 1rem; }
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.9rem; }

    .search-form {
        flex-direction: column;
        overflow: visible;
        border-radius: 0;
        gap: 0.75rem;
    }
    .search-form input[type="text"] {
        border-radius: 30px;
        border-right: 2px solid #374151;
    }
    .search-form button {
        border-radius: 30px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .feature-item h3 {
        text-align: center;
    }
    .feature-item p {
        text-align: center;
    }

    footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem 1rem;
    }

    .footer-country-link {
        font-size: 0.9rem;
    }
}

.footer-flag {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 2px;
}

html[dir="rtl"] .footer-middle > div {
    text-align: right;
}

html[dir="rtl"] .footer-section-title {
    text-align: right;
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .footer-section-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

html[dir="rtl"] .footer-links-grid {
    text-align: right;
}

html[dir="rtl"] .footer-country-link {
    text-align: right;
    padding-left: 0;
    padding-right: 15px;
}

html[dir="rtl"] .footer-country-link::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .footer-country-link:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .footer-flag {
    margin-right: 0;
    margin-left: 0.5rem;
}

@media (min-width: 1024px) {
    html[dir="rtl"] .footer-middle > div {
        text-align: right;
    }

    html[dir="rtl"] .footer-section-title::after {
        right: 0;
        left: auto;
        transform: none;
    }

    html[dir="rtl"] .footer-links-grid {
        margin: 0;
    }
}

@media (max-width: 1023px) {
    html[dir="rtl"] .footer-middle > div {
        text-align: center;
    }
    html[dir="rtl"] .footer-section-title {
        text-align: center;
        margin: 0 auto 1rem auto;
    }
    html[dir="rtl"] .footer-section-title::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    html[dir="rtl"] .footer-links-grid {
         margin: 0 auto;
         text-align: right;
    }
     html[dir="rtl"] .footer-country-link {
         text-align: right;
    }
}
/* PERFECT CENTER LAYOUT */
.center-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    text-align: center;
}

.yaywin-logo {
    max-width: 380px;
    width: 90%;
    height: auto;
    margin-bottom: 1.5rem;
}

.main-header h1 {
    font-family: 'Audiowide', sans-serif;
    font-size: 4.5rem;
    background: linear-gradient(90deg, #ffffff, #28C16D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.4rem;
    color: #d1d5db;
    margin-bottom: 3rem;
    max-width: 800px;
}

.language-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* TOMBOl PERSIS SEPERTI SCREENSHOT PERTAMA KAMU */
.country-selector-centered {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.country-button-big {
    background-color: #28C16D;
    color: white;
    padding: 1.8rem 4.5rem;        /* Lebar tombol sama persis */
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 280px;               /* Paksa lebar sama 100% */
    text-align: center;
    box-shadow: 0 15px 35px rgba(40, 193, 109, 0.5);
    transition: all 0.3s ease;
    border: 3px solid #28C16D;
}

.country-button-big:hover {
    background-color: #20a85a;
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(40, 193, 109, 0.7);
}

/* Responsif HP - jadi vertikal tapi tetap sama besar */
@media (max-width: 768px) {
    .country-selector-centered {
        flex-direction: column;
        gap: 2rem;
    }
    
    .country-button-big {
        min-width: 300px;
        padding: 1.8rem 2rem;
        font-size: 1.7rem;
    }
}