/* Importing 'Audiowide' and 'Roboto' fonts */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Roboto:wght@400;700&display=swap');

/* ========================================= */
/* --- 1. Base & Global Styles --- */
/* ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #111827;
    color: #f9fafb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
}

/* Base Typography */
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: #13926A;
}

p {
    color: #d1d5db;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Global Layout */
.portal-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
}

/* Footer */
footer {
    padding: 1.5rem;
    margin-top: auto;
    color: #6b7280;
    font-size: 0.9rem;
}


/* ========================================= */
/* --- 2. Components & Modules --- */
/* ========================================= */

/* Main Button Style */
.button {
    background-color: #13926A;
    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 on Index Page */
.country-selector {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.country-button {
    background-color: #13926A;
    color: #ffffff;
    padding: 1rem 0.5rem;
    border-radius: 8px;
    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 Page Components */
.search-widget {
    max-width: 1200px; /* Adjust width to be consistent */
    margin: 0 auto 3rem auto;
}

.search-form {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.search-form input[type="text"] {
    flex-grow: 1;
    border: 2px solid #374151;
    background-color: #1f2937;
    color: #f9fafb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-right: none;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #13926A;
}

.search-form button {
    background-color: #13926A;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border: 2px solid #13926A;
    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: 'Roboto', 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; /* Adjust width to be consistent */
    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: #13926A;
    text-decoration: none;
    font-weight: bold;
}

.result-item p {
    color: #d1d5db;
    margin: 0;
    font-size: 0.95rem;
}

/* Indonesia Page Components (Minimalist Design) */
.main-header {
    margin-bottom: 0.5rem;
}

.intro-text {
    max-width: 1200px; /* Adjust width to be consistent */
    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: #13926A;
}

.rating-display .rating-count {
    color: #6b7280;
}

.features-list {
    max-width: 1200px; /* Adjust width to be consistent */
    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: #13926A;
    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;
}

/* Link Style - Perbaikan di sini */
.green-link {
    color: #13926A; /* Mengubah warna teks */
    text-decoration: none; /* Menghilangkan garis bawah */
    font-weight: bold; /* Membuat teks tebal */
    transition: color 0.2s ease; /* Transisi saat di-hover */
}

.green-link:hover {
    color: #107a59; /* Warna saat di-hover */
    text-decoration: underline; /* Menambahkan garis bawah saat di-hover */
}

/* Call to action at the bottom */
.call-to-action {
    margin-top: 3rem;
}


/* ========================================= */
/* --- 3. Media Queries (Responsive) --- */
/* ========================================= */

/* Desktop (screen width 1024px and above) */
@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; }

    /* CTA Button Adjustments for Desktop */
    .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;
    }
}

/* Tablet (screen width 768px - 1023px) */
@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; }
}

/* Mobile (screen width 767px and below) */
@media (max-width: 767px) {
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.9rem; }
    
    /* Search Form Responsive Fix */
    .search-form {
        flex-direction: column;
        overflow: visible;
        border-radius: 0;
        gap: 0.75rem;
    }
    .search-form input[type="text"] {
        border-radius: 8px;
        border-right: 2px solid #374151;
    }
    .search-form button {
        border-radius: 8px;
    }

    /* Minimalist Feature List Responsive Fix */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .feature-item h3 {
        text-align: center;
    }
    .feature-item p {
        text-align: center;
    }
}

.main-header a {
    text-decoration: none;
}