/* Packages Page - NetGigabit */

/* Hero Section */
.packages-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 50%, var(--ng-primary-start, #5b83cd) 100%);
    position: relative;
    overflow: hidden;
}

.packages-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.packages-hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.packages-hero-shape.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.packages-hero-shape.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.packages-hero-shape.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.packages-hero > .container {
    position: relative;
    z-index: 2;
}

.packages-hero-content {
    color: white;
    text-align: center;
}

.modern-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.modern-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-breadcrumbs a:hover {
    color: white;
}

.modern-breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.modern-breadcrumbs .current {
    color: white;
    font-weight: 600;
}

.packages-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.packages-hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.packages-hero-title .title-highlight {
    color: #ffd700;
    position: relative;
}

.packages-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Content Section */
.packages-content {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Sidebar Styles */
.packages-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ng-primary-light, rgba(91, 131, 205, 0.1));
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ng-primary-start, #5b83cd);
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.filter-reset-btn {
    background: var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
    color: var(--ng-primary-start, #5b83cd);
    border: 1px solid rgba(230, 0, 18, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-reset-btn:hover {
    background: var(--ng-primary-start, #5b83cd);
    color: white;
    transform: translateY(-2px);
}

.filter-group {
    margin-bottom: 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.filter-header {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

.filter-header:hover {
    background: var(--ng-primary-light, rgba(91, 131, 205, 0.1));
}

.filter-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filter-header i {
    color: var(--ng-primary-start, #5b83cd);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-content.active {
    max-height: 300px;
    padding: 20px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--ng-primary-start, #5b83cd);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-option input[type="checkbox"]:checked + .checkmark {
    background: var(--ng-primary-start, #5b83cd);
    border-color: var(--ng-primary-start, #5b83cd);
}

.filter-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Toggle Options */
.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--ng-primary-start, #5b83cd);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Main Content */
.packages-main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ng-primary-light, rgba(91, 131, 205, 0.1));
}

.packages-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.packages-count h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.packages-count h3 span {
    color: var(--ng-primary-start, #5b83cd);
}

.packages-count p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.packages-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--ng-primary-start, #5b83cd);
    box-shadow: 0 0 0 3px var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

/* NiceSelect için özel düzenlemeler - paketler sayfası */
.packages-sort .nice-select {
    height: 42px !important;
    line-height: 42px !important;
    display: flex !important;
    align-items: center !important;
}

.packages-sort .nice-select .current {
    display: inline-block !important;
    line-height: 42px !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    text-align: center;
}

.no-results-message i {
    color: #999;
    margin-bottom: 20px;
}

.no-results-message h4 {
    color: #666;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-results-message p {
    color: #999;
    font-size: 16px;
    margin: 0;
}

/* Package Card */
.package-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    box-shadow: 0 20px 50px var(--ng-shadow-medium, rgba(91, 131, 205, 0.2));
    border-color: rgba(230, 0, 18, 0.2);
}

.package-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    padding: 8px 40px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
}

.package-header {
    margin-bottom: 24px;
}

.package-type {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    align-items: center;
}

.type-badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.type-badge.tv {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.type-badge.internet {
    background: #ffebee;
    color: var(--ng-primary-start, #5b83cd);
    border: 1px solid #ffcdd2;
}

.type-badge.bulut {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.package-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.package-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-item {
    width: 40px;
    height: 40px;
    background: var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ng-primary-start, #5b83cd);
    font-size: 16px;
}

.package-pricing {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #eee;
}

.price-section {
    flex: 1;
    text-align: center;
}

.price-section.single {
    flex: none;
    width: 100%;
}

.commitment-period {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.commitment-detail {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--ng-primary-start, #5b83cd);
    line-height: 1;
}

.price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.package-cta {
    text-align: center;
}

.package-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
    position: relative;
    overflow: hidden;
}

.package-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.package-btn:hover::before {
    left: 100%;
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
    color: white;
    text-decoration: none;
}

/* Footer */
.packages-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.load-more-btn {
    background: white;
    border: 2px solid var(--ng-primary-start, #5b83cd);
    color: var(--ng-primary-start, #5b83cd);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background: var(--ng-primary-start, #5b83cd);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
}

/* Responsive Design */
@media (max-width: 1199px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .packages-sidebar {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
}

@media (max-width: 991px) {
    .packages-hero {
        padding: 100px 0 60px;
    }
    
    .packages-content {
        padding: 40px 0;
    }
    
    .packages-main {
        padding: 20px;
    }
    
    .packages-sidebar {
        padding: 20px;
    }
    
    .packages-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .package-pricing {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-section {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .packages-hero {
        padding: 80px 0 40px;
    }
    
    .packages-hero-title {
        font-size: 2rem;
    }
    
    .packages-hero-subtitle {
        font-size: 16px;
    }
    
    .packages-main {
        padding: 15px;
    }
    
    .packages-sidebar {
        padding: 15px;
    }
    
    .package-card {
        padding: 20px;
    }
    
    .package-title {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .sort-select {
        min-width: 150px;
    }
}

/* Custom Scrollbar for Sidebar */
.packages-sidebar::-webkit-scrollbar {
    width: 6px;
}

.packages-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.packages-sidebar::-webkit-scrollbar-thumb {
    background: var(--ng-primary-start, #5b83cd);
    border-radius: 3px;
}

.packages-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d5000f;
}
