:root {
    --md-sys-color-background: #1A1A1A;
    --md-sys-color-surface: #242424;
    --md-sys-color-primary: #4F8CFF;
    --md-sys-color-on-primary: #000000;
    --md-sys-color-text: #E1E1E1;
    --md-sys-color-text-secondary: #B0B0B0;
}

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

body {
    font-family: 'Roboto', system-ui, sans-serif;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.content-left {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    max-width: 620px;
    margin: 0 auto;
    justify-content: center;
}

.content-right {
    position: relative;
    background-color: var(--md-sys-color-surface);
}

.title-container {
    margin-bottom: 2rem;
}

.truck-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--md-sys-color-primary);
    margin-bottom: 0.5rem;
}

.truck-subtitle {
    font-size: 2rem;         
    font-weight: 700;       
    color: var(--md-sys-color-text); 
    margin-bottom: 1.2rem;  
    margin-top: 1.5rem;  
    line-height: 1.2;       
}

.truck-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--md-sys-color-text-secondary);
    margin-bottom: 2rem;
}

.truck-description strong {
    color: var(--md-sys-color-text);
    display: block;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
}

.read-more:hover {
    opacity: 0.9;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-primary);
    border: none;
    border-radius: 2rem;
    font-weight: 500;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.loading {
    position: fixed;
    inset: 0;
    background-color: var(--md-sys-color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--md-sys-color-surface);
    border-top-color: var(--md-sys-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 50vh auto;
    }

    .content-right {
        order: 1;
    }

    .content-left {
        order: 2;
        padding: 2rem;
    }

    .truck-title {
        font-size: 3rem;
    }

    .truck-subtitle {
        font-size: 2em;
    }
}