/* ============================================
   MediaGO Theme - Main Stylesheet
   ============================================ */

:root {
    --color-dark: #0a0b0d;
    --color-darker: #050607;
    --color-blue: #3b82f6;
    --color-blue-light: #60a5fa;
    --color-orange: #f97316;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-border: #1f2937;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: 16px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.navbar-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 52px;
    width: auto;
    display: block;
}

.navbar-menu li {
    display: inline-block;
    margin-right: 24px;
}

.navbar-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.navbar-menu a:hover {
    color: var(--color-blue-light);
    background: rgba(59, 130, 246, 0.1);
}

.btn-newsletter {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-blue-light);
    border: 1px solid var(--color-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-newsletter:hover {
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    margin-top: 80px;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(10, 11, 13, 0) 100%);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Calculator Section
   ============================================ */

.calculator-section {
    padding: 3rem 2rem;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-box {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.calculator-box h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.slider-with-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.loan-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--color-blue), var(--color-blue-light));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.loan-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-blue-light);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.loan-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-blue-light);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.amount-display {
    background: rgba(10, 11, 13, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    color: var(--color-white);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-orange), #fb923c);
    color: var(--color-white);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

/* ============================================
   Offers Section
   ============================================ */

.offers-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.offers-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.offers-table-wrapper {
    overflow-x: auto;
}

.offers-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.offers-table thead {
    background: rgba(31, 41, 55, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offers-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-gray-light);
}

.offers-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offers-table tbody tr {
    transition: var(--transition);
}

.offers-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.offers-table tbody tr.recommended {
    border-left: 3px solid var(--color-blue);
}

.tip-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.offer-logo {
    max-width: 80px;
    height: auto;
    display: block;
}

.quality-index {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quality-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.quality-text {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.offer-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-interest,
.btn-detail {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-interest {
    background: linear-gradient(135deg, var(--color-orange), #fb923c);
    color: var(--color-white);
}

.btn-interest:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.btn-detail {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-blue-light);
    border: 1px solid var(--color-blue);
}

.btn-detail:hover {
    background: rgba(59, 130, 246, 0.3);
}

.no-offers {
    text-align: center;
    color: var(--color-gray);
    padding: 2rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: rgba(5, 6, 7, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-section p {
    color: var(--color-gray);
    font-size: 0.875rem;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--color-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--color-blue-light);
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 11, 13, 0.95);
        padding: 1rem;
        gap: 0;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-box {
        padding: 1.5rem;
    }

    .offers-table {
        font-size: 0.875rem;
    }

    .offers-table th,
    .offers-table td {
        padding: 0.75rem;
    }

    .offer-actions {
        flex-direction: column;
    }

    .btn-interest,
    .btn-detail {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar-sticky {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        height: 40px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .offers-section h2 {
        font-size: 1.5rem;
    }

    .offers-table-wrapper {
        overflow-x: auto;
    }

    .offers-table {
        min-width: 600px;
    }
}
