/* Links Page Styles - Optimized */

    /* Green Background Shape */
    .green-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, #d4ed8e 0%, #a8db7e 20%, #8bc968 50%, #7ec85f 80%, #6bb550 100%);
        clip-path: path('M 0 0 L 1500 0 L 1500 100 Q 1400 80, 1300 100 Q 1200 120, 1100 100 Q 1000 80, 900 110 Q 800 140, 700 110 Q 600 80, 500 120 Q 400 160, 300 130 Q 200 100, 100 140 L 0 180 Z M 0 180 L 0 400 Q 300 380, 600 420 Q 900 460, 1200 410 Q 1350 385, 1500 400 L 1500 0');
        z-index: 0;
        pointer-events: none;
    }

    /* Decorative Circle - Left */
    .circle-left {
        position: absolute;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(94, 160, 70, 0.8) 0%, rgba(94, 160, 70, 0.6) 50%, rgba(94, 160, 70, 0.3) 100%);
        border-radius: 50%;
        left: 30px;
        top: 120px;
        z-index: 1;
        pointer-events: none;
    }

    /* Decorative Circle - Right Top */
    .circle-right-top {
        position: absolute;
        width: 80px;
        height: 80px;
        background: radial-gradient(circle, rgba(80, 140, 60, 0.5) 0%, rgba(80, 140, 60, 0.3) 60%, transparent 100%);
        border-radius: 50%;
        right: 100px;
        top: 80px;
        z-index: 1;
        pointer-events: none;
    }

    /* Decorative Circle - Right Bottom */
    .circle-right-bottom {
        position: absolute;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(60, 120, 50, 0.4) 0%, rgba(60, 120, 50, 0.2) 50%, transparent 100%);
        border-radius: 50%;
        right: -50px;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
    
    /* Decorative Container */
    .decorative-container {
        position: relative;
        min-height: 400px;
        overflow: hidden;
        pointer-events: none;
    }

    /* White Wave Overlay */
    .wave-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: white;
        clip-path: ellipse(80% 100% at 50% 100%);
        z-index: 2;
        pointer-events: none;
    }

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Respect base2.html body styles, only add enhancements */
.links-page-content {
    font-family: inherit;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes gentleShine {
    0%, 80% {
        left: -100%;
        opacity: 0;
    }
    85% {
        opacity: 0.5;
    }
    90%, 100% {
        left: 150%;
        opacity: 0;
    }
}

/* Notification Badge */
.notification-badge {
    animation: pulse 2s infinite;
}

.message-notification-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Seller Profile Modal */
.seller-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.seller-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.seller-profile-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.seller-profile-header {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.seller-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
    color: #6b7280;
}

.seller-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.seller-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.seller-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #714b67;
}

.seller-profile-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.seller-profile-username {
    color: #6b7280;
    font-size: 14px;
}

.seller-profile-bio {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.seller-stats-section {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.seller-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
}

.follow-profile-btn,
.message-profile-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
}

.follow-profile-btn {
    background: #714b67;
    color: white;
    transition: all 0.3s ease;
}

.follow-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 75, 103, 0.5);
    background: #5d3d54;
}

.message-profile-btn {
    background: #f3f4f6;
    color: #1f2937;
}

.message-profile-btn:hover {
    background: #e5e7eb;
}

.posts-section-header {
    padding: 20px 24px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 24px 24px;
}

.post-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.post-item:hover img {
    transform: scale(1.1);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #714b67;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px 24px;
    color: #6b7280;
}

.error-message i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 16px;
}

.error-message p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Glassmorphism container */
.glass-container {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Request Modal */
.request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.request-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    margin: 0;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #714b67;
}

textarea.form-control {
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #714b67;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(113, 75, 103, 0.5);
    background: #5d3d54;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

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

/* Enhanced Page Styles */
.links-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
}

/* Ensure content doesn't overlap with header */
.links-content-wrapper {
    position: relative;
    z-index: 1;
}

/* Header Compatibility Fixes */
/* Ensure base2.html header stays on top and doesn't interfere with content */
.testimonials-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

/* Ensure dropdown menus from header work correctly */
.testimonials-nav .absolute,
.testimonials-nav-right .absolute {
    z-index: 10000 !important;
}

/* Make sure mobile menu works */
#mobileMenu {
    z-index: 1050 !important;
}

/* Notification dropdown from header */
.notification-dropdown-container {
    position: relative !important;
    z-index: 1001 !important;
}

.notification-dropdown {
    z-index: 10001 !important;
}

/* Ensure proper scroll behavior with sticky header */
html {
    scroll-padding-top: 80px; /* Account for sticky header height */
}

/* Main content area adjustments */
main {
    position: relative;
    z-index: 1;
    padding-top: 0; /* Remove any extra padding that might cause gaps */
}

/* Prevent content from jumping under sticky header */
body {
    padding-top: 0;
}

/* Links page specific header adjustments */
.links-page-wrapper {
    margin-top: 0;
}

.search-filter-bar {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #714b67 !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(113, 75, 103, 0.1) !important;
}

.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Adjust scroll padding for smaller header on mobile */
    html {
        scroll-padding-top: 70px;
    }
    
    /* Ensure header doesn't interfere with mobile menu */
    .testimonials-nav {
        position: sticky !important;
    }
    
    .search-filter-bar {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .search-form {
        gap: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Search Bar Responsive */
    input[type="text"][style*="border-radius: 50px"] {
        padding: 14px 60px 14px 20px !important;
        font-size: 14px !important;
    }
    
    button[style*="width: 44px"][style*="height: 44px"] {
        width: 38px !important;
        height: 38px !important;
    }
    
    div[style*="max-width: 700px"] {
        max-width: 100% !important;
        padding: 0 10px;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Card responsiveness */
    div[style*="padding-top: 75%"] {
        padding-top: 60% !important;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns: repeat(auto-fill, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .seller-profile-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .seller-profile-header {
        padding: 20px;
    }

    .seller-avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .seller-profile-avatar {
        width: 60px;
        height: 60px;
    }

    .seller-profile-info h2 {
        font-size: 20px;
    }

    .seller-stats-section {
        padding: 12px 0;
    }

    .stat-number {
        font-size: 18px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .seller-actions {
        flex-direction: column;
    }

    .follow-profile-btn,
    .message-profile-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .seller-profile-modal,
    .request-modal,
    .header-actions {
        display: none !important;
    }
}

