/* ===================================
   Platform Page Styles
   =================================== */

/* Platform Header */
.platform-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 3rem 0;
}

.platform-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.platform-icon-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
}

.platform-details {
    flex: 1;
}

.platform-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.platform-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Categories Section */
.categories-section {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 73px;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.categories-tabs {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-tab:hover {
    background: #e0e7ff;
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
}

/* Services Section */
.services-section {
    padding: 3rem 0;
    background: var(--background);
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 350px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.section-info-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #12c0bc 0%, #0fbdc1 100%);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 0.5rem;
}

.section-info-box .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
}

.section-info-box .info-item i {
    font-size: 1rem;
    opacity: 0.9;
}

/* =============================================
   PROFESSIONAL SERVICE CARD DESIGN
   ============================================= */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.25);
}

.service-card:hover::before {
    opacity: 1;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
}

/* Service Name - Improved */
.service-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
}

/* Service Meta - Quantity Badge */
.service-meta {
    margin-bottom: 1.25rem;
}

.service-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.service-quantity i {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Service Footer - Redesigned */
.service-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 2px dashed #e5e7eb;
}

.service-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.5px;
}

.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-order:hover::before {
    left: 100%;
}

.btn-order:active {
    transform: translateY(-1px);
}

/* Custom Order Card */
.custom-order-card {
background: linear-gradient(135deg, #0bbac9 0%, #8cdfe5 100%);    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.custom-order-header {
    text-align: center;
    margin-bottom: 1rem;
}

.custom-order-header i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    display: block;
    opacity: 0.9;
}

.custom-order-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.custom-order-header p {
    opacity: 0.9;
    font-size: 0.875rem;
}

.custom-order-body {
    max-width: 450px;
    margin: 0 auto;
}

.custom-form-group {
    margin-bottom: 1rem;
}

.custom-form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.custom-form-group input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.custom-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.input-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.custom-price-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
    opacity: 0.85;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.price-note {
    font-size: 0.7rem;
    opacity: 0.7;
}

.btn-custom-order {
    width: 100%;
    padding: 0.75rem;
    background: var(--white);
    color: #17c3b2;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-custom-order:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-custom-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Platform Features */
.platform-features {
    background: var(--white);
    padding: 3rem 0;
}

.features-box {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid #e5e7eb;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-title i {
    color: var(--success);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: var(--text);
    margin-bottom: 0.25rem;
}

.feature-text span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* All Services Page */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

.all-services-section {
    padding: 3rem 0;
}

.services-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-group {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.price-range input[type="range"] {
    width: 100%;
    margin-bottom: 0.5rem;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.875rem;
}

.sort-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    background: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Services Main */
.services-main {
    min-height: 400px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.results-count {
    font-weight: 600;
    color: var(--text-light);
}

.filter-toggle {
    display: none;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        z-index: 1000;
        transition: right 0.3s;
        overflow-y: auto;
    }

    .filter-sidebar.active {
        right: 0;
    }

    .filter-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .platform-header {
        padding: 2rem 0;
    }

    .platform-info {
        flex-direction: column;
        text-align: center;
    }

    .platform-title {
        font-size: 2rem;
    }

    .categories-section {
        top: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Card Adjustments */
    .service-card {
        border-radius: 16px;
    }
    
    .service-content {
        padding: 1.25rem;
    }
    
    .service-name {
        font-size: 0.95rem;
        min-height: 2.4rem;
    }
    
    .service-quantity {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .service-price {
        font-size: 1.35rem;
    }
    
    .btn-order {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .btn-order i {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .service-content {
        padding: 1rem;
    }
    
    .service-name {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .service-meta {
        margin-bottom: 1rem;
    }
    
    .service-quantity {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    
    .service-footer {
        padding-top: 1rem;
        gap: 0.75rem;
    }
    
    .service-price {
        font-size: 1.2rem;
    }
    
    .btn-order {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
