/* Renk Değişkenleri */
:root {
    --primary-color: #f75316;
    --primary-dark: #d1450d;
    --secondary-color: #2c3e50;
    --secondary-light: #34495e;
    --light-color: #f8f9fa;
    --dark-color: #1a2530;
    --border-color: #e9ecef;
}

/* RTL Desteği */
[dir="rtl"] {
    text-align: right;
}

/* Genel Layout */
.machine-catalog-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sidebar - Kategoriler */
.sidebar-section {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header {
    background: #2c3e50;
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 3px solid #f75316;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sidebar-header i {
        color: #f75316;
    }

.categories-list {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: #495057;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .category-link:hover {
        background: #f8f9fa;
        color: #2c3e50;
        border-left-color: #f75316;
    }

    .category-link.active {
        background: #f75316;
        color: white;
        border-left-color: #2c3e50;
    }

.category-count {
    background: #e9ecef;
    color: #495057;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Main Content */
.main-content-section {
    flex: 1;
    min-width: 0;
}

/* Selected Machines - Slide Style */
.selected-machines-section {
    background: #f8f9fa;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.05);
    border: 1px solid var(--border-color);
}

.machine-featured-item {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.08);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

    .machine-featured-item:hover {
        box-shadow: 0 12px 35px rgba(44, 62, 80, 0.12);
    }

.featured-row {
    display: flex;
    min-height: 400px;
}

.featured-right .featured-row {
    flex-direction: row-reverse;
}

.featured-left .featured-row {
    flex-direction: row;
}

.featured-image-column {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    overflow: hidden;
}

.featured-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.1), transparent 40%);
}

.featured-right .image-overlay {
    background: linear-gradient(to left, rgba(44, 62, 80, 0.1), transparent 40%);
}

.featured-content-column {
    flex: 0 0 45%;
    max-width: 45%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.featured-right .featured-content-column {
    text-align: left;
}

.featured-left .featured-content-column {
    text-align: right;
}

[dir="rtl"] .featured-right .featured-content-column {
    text-align: right;
}

[dir="rtl"] .featured-left .featured-content-column {
    text-align: left;
}

.featured-badge {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.featured-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.spec-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #f75316;
    transition: all 0.3s ease;
}

    .spec-item:hover {
        background: #f0f3f5;
        transform: translateY(-2px);
    }

.spec-label {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.spec-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.spec-icon {
    color: #f75316;
    margin-right: 8px;
}

.featured-description {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.featured-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-featured-view {
    flex: 1;
    background: #2c3e50;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #2c3e50;
}

    .btn-featured-view:hover {
        background: transparent;
        color: #2c3e50;
        transform: translateY(-2px);
    }

/* Other Machines - Grid */
.other-machines-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.05);
    border: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.section-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Results Info */
.results-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #f75316;
}

.results-count {
    color: #2c3e50;
    font-weight: 600;
}

    .results-count span {
        color: #f75316;
    }

/* Grid */
.other-machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.machine-grid-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .machine-grid-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(44, 62, 80, 0.12);
        border-color: #f75316;
    }

.grid-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.machine-grid-card:hover .grid-image {
    transform: scale(1.05);
}

.grid-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 70%, rgba(44, 62, 80, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-grid-card:hover .grid-image-overlay {
    opacity: 1;
}

.grid-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[dir="rtl"] .grid-badge {
    right: auto;
    left: 15px;
}

.grid-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

    .grid-title a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .grid-title a:hover {
            color: #f75316;
        }

.grid-model {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .grid-model i {
        color: #f75316;
    }

.grid-specs-container {
    margin: 15px 0;
    flex-grow: 1;
}

.grid-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-spec-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #f75316;
    transition: all 0.3s ease;
}

    .grid-spec-item:hover {
        background: #f0f3f5;
        transform: translateY(-1px);
    }

.grid-spec-label {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.grid-spec-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.85rem;
}

.grid-spec-icon {
    color: #f75316;
    font-size: 0.85rem;
    margin-right: 5px;
}

.condition-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

    .condition-badge.new {
        background: #e8f5e9;
        color: #2e7d32;
        border-color: #c8e6c9;
    }

    .condition-badge.used {
        background: #fff3e0;
        color: #ef6c00;
        border-color: #ffe0b2;
    }

.grid-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-grid-view {
    flex: 1;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    border: 2px solid #2c3e50;
}

    .btn-grid-view:hover {
        background: transparent;
        color: #2c3e50;
        transform: translateY(-2px);
    }

/* Yeni Eklenen Sayfalama Stilleri */
.custom-pagination-container {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.custom-pagination {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.custom-page-item {
    list-style: none;
}

.custom-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .custom-page-link:hover {
        background: #2c3e50;
        color: white;
        border-color: #2c3e50;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
    }

.custom-page-item.active .custom-page-link {
    background: #f75316;
    color: white;
    border-color: #f75316;
    box-shadow: 0 4px 12px rgba(247, 83, 22, 0.2);
}

.custom-page-item.disabled .custom-page-link {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

    .custom-page-item.disabled .custom-page-link:hover {
        background: #f8f9fa;
        color: #adb5bd;
        border-color: #e9ecef;
        transform: none;
        box-shadow: none;
    }

.custom-page-arrow {
    min-width: 42px;
    height: 42px;
    border-radius: 8px;
}

.custom-page-info {
    text-align: center;
    margin-top: 20px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: inline-block;
}

    .custom-page-info strong {
        color: #f75316;
    }

/* Yeni eklenen stiller */
.content-with-sidebar-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.grid-content-section {
    flex: 1;
    min-width: 0;
}

/* Responsive düzenlemeler */
@@media (max-width: 1200px) {
    .content-with-sidebar-container {
        gap: 25px;
    }
}

@@media (max-width: 992px) {
    .content-with-sidebar-container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-section {
        flex: none;
        width: 100%;
        position: static;
    }

    .other-machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@@media (max-width: 768px) {
    .content-with-sidebar-container {
        gap: 15px;
    }

    .other-machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@@media (max-width: 576px) {
    .content-with-sidebar-container {
        gap: 10px;
    }

    .other-machines-grid {
        grid-template-columns: 1fr;
    }
}
/* Responsive */
@@media (max-width: 1200px) {
    .machine-catalog-container {
        max-width: 100%;
    }

    .sidebar-section {
        flex: 0 0 250px;
    }

    .featured-row {
        min-height: 380px;
    }

    .featured-title {
        font-size: 1.8rem;
    }
}

@@media (max-width: 992px) {
    .machine-catalog-container {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar-section {
        position: static;
        flex: none;
        width: 100%;
    }

    .featured-row {
        min-height: 350px;
        flex-direction: column !important;
    }

    .featured-image-column,
    .featured-content-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .featured-image-column {
        height: 250px;
    }

    .featured-content-column {
        padding: 25px !important;
        text-align: center !important;
    }

    .featured-specs {
        grid-template-columns: 1fr;
    }

    .featured-actions {
        flex-direction: column;
    }

    .other-machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@@media (max-width: 768px) {
    .selected-machines-section,
    .other-machines-section {
        padding: 20px;
    }

    .results-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .other-machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .grid-specs {
        grid-template-columns: 1fr;
    }

    .grid-actions {
        flex-direction: column;
    }

    .custom-pagination {
        gap: 5px;
    }

    .custom-page-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@@media (max-width: 576px) {
    .other-machines-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }
}
