/* Services Page Styles */

/* Auth Buttons for Public Interface */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-buttons .btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-buttons .btn-outline {
    border: 1px solid #e5e7eb;
    color: #374151;
    background: white;
}

.auth-buttons .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.auth-buttons .btn-primary {
    background: #7c3aed;
    color: white;
    border: 1px solid #7c3aed;
}

.auth-buttons .btn-primary:hover {
    background: #6d28d9;
    border-color: #6d28d9;
}

/* Login Prompt Modal */
.login-prompt-modal {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.login-prompt-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
}

.login-prompt-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
}

.login-prompt-icon i {
    font-size: 2rem;
}

.login-prompt-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-prompt-header p {
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
}

.login-prompt-body {
    padding: 1.5rem 2rem;
}

.login-prompt-benefits {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #7c3aed;
}

.benefit-item i {
    color: #7c3aed;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.benefit-item span {
    color: #374151;
    font-weight: 500;
}

.login-prompt-actions {
    padding: 1rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-prompt-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    max-width: 180px;
}

.login-prompt-actions .btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.login-prompt-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.login-prompt-actions .btn-primary {
    background: #7c3aed;
    color: white;
}

.login-prompt-actions .btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.login-prompt-actions .btn-success {
    background: #10b981;
    color: white;
}

.login-prompt-actions .btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Modal Animation */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-overlay .modal-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .login-prompt-actions {
        flex-direction: column;
    }
    
    .login-prompt-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Main Content */
.main-content {
    margin-top: 4rem; /* Account for fixed header */
}

.services-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.services-filter {
    background: #f9fafb;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #7c3aed;
    background: #7c3aed;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn .filter-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.search-bar {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
}

.search-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Services Grid - More specific selector for services page */
.services-grid {
    padding: 4rem 0;
    background: white;
}

.services-grid .container .services-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    padding: 0 !important;
}

/* Override dashboard styles specifically for services page */
body .services-grid .services-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
}

.services-grid .service-card {
    background: white !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    flex-direction: initial !important;
    width: auto !important;
    min-width: auto !important;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #7c3aed;
}

.service-platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.service-platform-badge.instagram {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.service-platform-badge.facebook {
    background: #1877f2;
    color: white;
}

.service-platform-badge.tiktok {
    background: #000000;
    color: white;
}

.service-platform-badge.youtube {
    background: #ff0000;
    color: white;
}

.service-header {
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.service-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.service-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-weight: 500;
}

.service-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-per-unit {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.quantity-range {
    font-size: 0.875rem;
    color: #6b7280;
}

.delivery-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.service-actions {
    display: flex;
    gap: 1rem;
}

.btn-order {
    flex: 1;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39);
}

.btn-info {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.2s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    background: none;
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.service-details {
    display: grid;
    gap: 2rem;
}

.service-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
}

.service-features {
    margin: 1rem 0;
}

.order-form .form-group {
    margin-bottom: 1.5rem;
}

.order-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

.order-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.order-form .form-control:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.quantity-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.price-calculator {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f3f4f6;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.price-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
