/* Modelet page – title like kontakti, categories like blogs, model cards, PDF section */

html.modelet-page {
    scroll-behavior: smooth;
}

.modelet-page {
    background: #fff;
    color: #111;
}

.modelet-header {
    position: relative;
}

.modelet-header .hero-nav {
    background: #fff;
    color: #111;
}

.modelet-main {
    padding: 0;
    animation: modeletPageFadeIn 0.5s ease-out forwards;
}

@keyframes modeletPageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modelet-title-section {
    animation: modeletFadeIn 0.6s ease-out 0.1s both;
}

.modelet-page .blog-section {
    animation: modeletFadeIn 0.6s ease-out 0.2s both;
}

.modelet-pdf-section {
    animation: modeletFadeIn 0.6s ease-out 0.3s both;
}

.modelet-back-to-top {
    animation: modeletFadeIn 0.5s ease-out 0.4s both;
}

@keyframes modeletFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title section – like kontakti.php */
.modelet-title-section {
    background: #fff;
    padding: 190px 24px 56px;
}

.modelet-title-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

.modelet-title {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
    line-height: 1.1;
}

.modelet-subtitle {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
}

.modelet-intro {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 17px;
    color: #333;
    margin: 0;
}

/* Category section – 100% same as blogs.php (scoped to modelet-page) */
.modelet-page .blog-section {
    background: #e8e8e8;
}

.modelet-page .blog-categories {
    background: #f5f5f5;
    padding: 52px 56px 56px;
    border-bottom: 1px solid #e0e0e0;
}

.modelet-page .blog-category {
    color: #111111;
}

.modelet-page .blog-category:hover,
.modelet-page a.blog-category:hover {
    color: #000 !important;
}

.modelet-page .blog-category.active {
    color: #111111;
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
}

.modelet-page .blog-category.active .category-arrow {
    border-bottom-color: #e8e8e8;
}

.modelet-page .blog-cards-container.modelet-cards-wrapper {
    padding: 40px 56px 60px 56px;
    background: #e8e8e8;
}

.modelet-empty {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0;
    padding: 24px 0;
}

.modelet-page .mobile-category-dropdown .mobile-category-btn {
    background: transparent;
    color: #111111;
    border: none;
}

.modelet-page .mobile-category-btn span:first-child {
    color: #555555;
}

.modelet-page .mobile-category-selected {
    color: #111111;
}

.modelet-page .mobile-category-arrow {
    fill: #111111;
}

.modelet-page .mobile-category-list {
    background: transparent;
    border: none;
}

.modelet-page .mobile-category-dropdown.is-open .mobile-category-list {
    border-top: 3px solid #000;
}

.modelet-page .mobile-category-option {
    color: #111111;
}

.modelet-page .mobile-category-option:hover,
.modelet-page .mobile-category-option.active {
    background: rgba(0, 0, 0, 0.05);
    color: #111111;
}

/* Category arrow triangle – same as blogs (points into #e8e8e8) */
.modelet-page .blog-category .category-arrow {
    border-bottom-color: #e8e8e8;
}

.modelet-page .mobile-category-dropdown {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.modelet-category-block {
    margin-bottom: 56px;
}

.modelet-category-block:last-child {
    margin-bottom: 0;
}

.modelet-category-heading {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modelet-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Model card – no rounded corners, same UI for all cards */
.modelet-card-model,
.modelet-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.modelet-card-model {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.modelet-card-model:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.modelet-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f2f2f2;
}

.modelet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.modelet-card-model:hover .modelet-card-image img {
    transform: scale(1.1);
}

.modelet-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #0062ff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 0;
}

.modelet-card-body {
    padding: 20px;
}

.modelet-card-name {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 20px;
    margin: 0 0 4px;
    color: #000;
}

.modelet-card-year {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
}

.modelet-card-desc {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.4;
}

.modelet-card-price-wrap {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.modelet-card-price-old {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}

.modelet-card-price {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 15px;
    color: #000;
}

/* PDF section – left-aligned like reference (Preuzmite cenovnik / Aktuelni cenovnik) */
.modelet-pdf-section {
    background: #fff;
    padding: 56px 24px;
}

.modelet-pdf-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

.modelet-pdf-title {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.modelet-pdf-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modelet-pdf-link:hover {
    color: #0062ff;
}

.modelet-pdf-icon-download {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin-top: 2px;
    object-fit: contain;
}

.modelet-pdf-link-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modelet-pdf-link-text {
    font-size: 18px;
    font-weight: 400;
    color: inherit;
}

.modelet-pdf-meta {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Back to top */
.modelet-back-to-top {
    background: #fff;
    padding: 24px;
    text-align: center;
}

.modelet-back-to-top .back-to-top-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: #111;
    text-decoration: none;
}

.modelet-back-to-top .back-to-top-icon {
    width: 20px;
    height: 20px;
}

/* Responsive – like kontakti / dyqani */
@media (max-width: 1024px) {
    .modelet-title {
        font-size: 48px;
    }
    .modelet-subtitle {
        font-size: 26px;
    }
    .modelet-page .blog-categories {
        padding: 40px 32px 40px;
    }
    .modelet-page .blog-cards-container.modelet-cards-wrapper {
        padding: 32px 40px 48px 40px;
    }
    .modelet-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

/* Tablet - keep 2 columns but smaller padding */
@media (max-width: 1024px) and (min-width: 641px) {
    .modelet-title-section {
        padding: 110px 24px 40px;
    }
    .modelet-title {
        font-size: 44px;
    }
    .modelet-subtitle {
        font-size: 22px;
    }
    .modelet-intro {
        font-size: 15px;
    }
    .modelet-page .blog-cards-container.modelet-cards-wrapper {
        padding: 24px 24px 40px;
    }
    .modelet-category-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .modelet-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .modelet-pdf-section {
        padding: 40px 24px;
    }
    .modelet-pdf-title {
        font-size: 22px;
    }
    .modelet-pdf-link-text {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .modelet-title {
        font-size: 34px;
    }
    .modelet-subtitle {
        font-size: 20px;
    }
    .modelet-card-body {
        padding: 16px;
    }
    .modelet-card-name {
        font-size: 18px;
    }
}
