/* Network Page - App Profile Style */

/* CSS Variables matching app_profile */
:root.theme-light {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8A50;
    --primary-black: #1A1A1A;
    --primary-white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #808080;
    --background-main: #FFFFFF;
    --background-card: #FFFFFF;
    --border-color: #E0E0E0;
    --hover-bg: rgba(255, 107, 53, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

:root:not(.theme-light) {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8A50;
    --primary-black: #000000;
    --primary-white: #E0E0E0;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --background-main: #0A0A0A;
    --background-card: #1A1A1A;
    --border-color: #2A2A2A;
    --hover-bg: rgba(255, 107, 53, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Base Container */
.network-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-width: 910px) {
    .network-container {
        padding: 0.75rem 0;
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .network-container {
        padding: 0.5rem 0;
        margin: 0;
    }
}

/* Hero and Map Container */
.hero-map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .hero-map-container {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 3rem;
    }
}

/* Hero Column */
.hero-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: left;
    padding: 1.5rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .hero-section {
        text-align: center;
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 1rem;
        border-radius: 16px;
    }
}

/* Featured Users Section */
.hero-featured-users {
    position: relative;
    overflow: hidden;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .hero-featured-users {
        padding: 1rem;
        border-radius: 16px;
    }
}

/* Background Image Overlay */
.hero-featured-users::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/logo3dwhite.png');
    background-size: 80% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.theme-light .hero-featured-users::before {
    background-image: url('/static/images/logo3dblack.png');
}

@media (max-width: 767px) {
    .hero-featured-users::before {
    background-size: 100% auto;
    }
}


/* Gradient Overlay for better text readability */
.hero-featured-users::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(255, 107, 53, 0.1) 50%,
        rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

/* All content above overlays */
.hero-featured-users > * {
    position: relative;
    z-index: 2;
}

.theme-light .hero-featured-users {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.theme-light .hero-featured-users::after {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(255, 107, 53, 0.05) 50%,
        rgba(255, 255, 255, 0.9) 100%);
}

.featured-users-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid #FF6B35;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.theme-light .featured-users-title {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.featured-users-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-user-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 107, 53, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.featured-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.featured-user-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
    border-color: #FF6B35;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 107, 53, 0.1) 100%);
}

.featured-user-card:hover::before {
    left: 100%;
}

.theme-light .featured-user-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 107, 53, 0.02) 100%);
    border-color: rgba(255, 107, 53, 0.4);
}

.theme-light .featured-user-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 107, 53, 0.05) 100%);
}

.featured-user-avatar {
    position: relative;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.featured-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #FF6B35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transition: transform 0.3s ease;
}

.featured-user-card:hover .featured-user-avatar img {
    transform: scale(1.1);
}

.verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.6);
}

.theme-light .verified-badge {
    border-color: #ffffff;
}

.featured-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-user-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-light .featured-user-name {
    color: #000000;
    text-shadow: none;
}

.featured-user-profession {
    font-size: 0.85rem;
    color: #FF6B35;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-light .featured-user-profession {
    color: #FF6B35;
}

.featured-user-team {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

.theme-light .featured-user-team {
    color: rgba(0, 0, 0, 0.7);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }
}

@media (max-width: 1023px) {
    .hero-subtitle {
        margin: 0 auto 1rem;
        text-align: center;
    }
}

.theme-light .hero-subtitle {
    color: rgba(0, 0, 0, 0.7);
}

/* Map Section */
.map-section {
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
    .map-section {
        display: flex;
        align-items: stretch;
    }
}

@media (max-width: 1023px) {
    .map-section {
        height: 350px;
        margin-bottom: 1rem;
    }
}

.theme-light .map-section {
    border-color: rgba(0, 0, 0, 0.1);
}

.network-map {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.theme-light .network-map {
    background: rgba(255, 255, 255, 0.95);
}

/* Custom Map Markers */
.custom-map-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.custom-map-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.custom-map-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-map-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    background: var(--background-card) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    color: var(--text-primary) !important;
}

.leaflet-popup-tip {
    background: var(--background-card) !important;
    border: 1px solid var(--border-color) !important;
}

/* Leaflet popup close button */
.leaflet-popup-close-button {
    color: var(--text-primary) !important;
    font-size: 20px !important;
    padding: 4px 8px !important;
}

.leaflet-popup-close-button:hover {
    color: #FF6B35 !important;
}

/* Users Search Section */
.users-search-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
}

@media (max-width: 767px) {
    .users-search-section {
        margin: 2rem 0;
        padding: 1rem;
    }
}

.theme-light .users-search-section {
    background: rgba(0, 0, 0, 0.02);
}

.users-search-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.theme-light .users-search-title {
    color: var(--text-primary);
}

/* Search and Filters Section */
.search-filters-section {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .search-filters-section {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
}

.search-container {
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
}

.theme-light .search-icon {
    color: rgba(0, 0, 0, 0.4);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .filter-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        letter-spacing: 0;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn i {
        margin: 0;
        font-size: 1.1rem;
    }
}

.filter-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Clear Filters Button */
.clear-filters-btn {
    padding: 0.75rem 1rem;
    background: var(--background-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: var(--hover-bg);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .clear-filters-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
        letter-spacing: 0;
        border-radius: 25px;
        gap: 0;
    }

    .clear-filters-btn span {
        display: none;
    }

    .clear-filters-btn i {
        font-size: 1.1rem;
        margin: 0;
    }
}

/* Filter Dropdowns */
.filter-dropdowns {
    margin-bottom: 2rem;
}

/* Mobile Filter Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.active {
    display: block;
    opacity: 1;
}

@media (min-width: 768px) {
    .filter-overlay {
        display: none !important;
    }
}

.filter-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--background-card);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    margin: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.filter-dropdown.active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .filter-dropdown {
        position: static;
        transform: none;
        max-height: none;
        border-radius: 12px;
        box-shadow: none;
        margin-bottom: 1rem;
    }
}

.theme-light .filter-dropdown {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.filter-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-dropdown h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.filter-done-btn {
    display: block;
    padding: 0.6rem 1.5rem;
    background: var(--primary-orange);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-done-btn:hover {
    background: var(--secondary-orange);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .filter-dropdown-header {
        display: none;
    }
}

.filter-options-wrapper {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
    max-height: 50vh; /* Ensure scrollable area has a max height */
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .filter-options-wrapper {
        overflow-y: visible;
        padding-right: 0;
    }
    
    .filter-options {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--hover-bg);
    border: 1px solid transparent;
}

@media (max-width: 767px) {
    .filter-option {
        padding: 1rem;
        border: 1px solid var(--border-color);
    }
    
    .filter-option:active {
        background: var(--primary-orange);
        color: white;
    }
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-light .filter-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

@media (max-width: 767px) {
    .filter-option input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
}

.filter-option span {
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

@media (max-width: 767px) {
    .filter-option span {
        font-size: 1rem;
    }
}

/* No Selection Message */
.no-selection-message {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: var(--hover-bg);
    margin: 0.5rem 0;
}

.theme-light .no-selection-message {
    color: #666;
    background: rgba(0, 0, 0, 0.03);
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.results-header {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--hover-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.results-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    font-weight: 600;
}

.theme-light .results-title {
    color: #333;
}

/* User Cards Grid */
.user-cards-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Desktop: 3 cards per row for large screens */
@media (min-width: 1200px) {
    .user-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 2 cards per row for medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .user-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
    .user-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Slim User Card - Now fully clickable */
.user-card-slim {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.user-card-slim:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.user-card-slim:visited,
.user-card-slim:link {
    text-decoration: none;
    color: inherit;
}

.user-card-slim:active {
    transform: translateY(0);
}

.user-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-light .user-card-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-profession {
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-card-team {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-card-location {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

.user-card-location i {
    color: var(--primary-orange);
    font-size: 0.75rem;
}

/* User card action buttons removed - cards are now fully clickable */

/* Featured Section */
.featured-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-light .featured-section {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.featured-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.theme-light .featured-title {
    color: #333;
}

.featured-cards {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .featured-cards {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.featured-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 237, 78, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover::before {
    opacity: 1;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.featured-card-image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255, 215, 0, 0.3);
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-content {
    flex: 1;
    position: relative;
}

.featured-card-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.theme-light .featured-card-name {
    color: #333;
}

.featured-card-surname {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.theme-light .featured-card-surname {
    color: rgba(0, 0, 0, 0.7);
}

.featured-card-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    transition: all 0.3s ease;
}

.featured-card-arrow:hover {
    background: #ffd700;
    color: #333;
    transform: translateY(-50%) scale(1.1);
}

/* Annunci Section */
.annunci-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
}

@media (max-width: 767px) {
    .annunci-section {
        margin: 2rem 0;
        padding: 1rem;
    }
}

.theme-light .annunci-section {
    background: rgba(0, 0, 0, 0.02);
}

.annunci-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.theme-light .annunci-title {
    color: var(--text-primary);
}

.annunci-header {
    margin-bottom: 1.5rem;
}

.create-annuncio-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 12px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.create-annuncio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.annunci-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .annunci-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

.annuncio-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.theme-light .annuncio-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

.annuncio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.annuncio-card.seeking {
    /* Removed border-left */
}

.annuncio-card.offering {
    /* Removed border-left */
}

.annuncio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.annuncio-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.annuncio-type-badge.seeking {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-orange);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.annuncio-type-badge.offering {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.annuncio-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.theme-light .annuncio-date {
    color: rgba(0, 0, 0, 0.5);
}

.annuncio-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.theme-light .annuncio-title {
    color: #333;
}

.annuncio-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.theme-light .annuncio-description {
    color: rgba(0, 0, 0, 0.6);
}

.annuncio-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.annuncio-category,
.annuncio-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.theme-light .annuncio-category,
.theme-light .annuncio-location {
    color: rgba(0, 0, 0, 0.5);
}

.contact-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c42 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #ff8c42 0%, var(--primary-orange) 100%);
    border-color: rgba(255, 107, 53, 0.5);
    color: #ffffff;
}

.no-annunci {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-annunci p {
    font-size: 1rem;
    margin: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .network-container {
        padding: 0.5rem;
    }
    
    .profession-tabs {
        gap: 0.5rem;
    }
    
    .profession-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .search-filters-section {
        padding: 1rem;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
    }
    
    .user-card-slim {
        padding: 0.75rem;
    }
    
    .user-card-avatar {
        width: 50px;
        height: 50px;
    }
    
    .featured-card {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-card-arrow {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
}

/* Annuncio Detail Popup Modal */
.annuncio-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.annuncio-popup-content {
    background: var(--glass-bg, rgba(1, 1, 1, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.2));
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.theme-light .annuncio-popup-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.annuncio-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.theme-light .annuncio-popup-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.annuncio-popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    font-family: var(--heading-font, 'DM Sans', sans-serif);
}

.theme-light .annuncio-popup-header h2 {
    color: #1a1a1a;
}

.annuncio-popup-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.annuncio-popup-close:hover {
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    transform: rotate(90deg);
}

.annuncio-popup-close svg {
    width: 20px;
    height: 20px;
}

.theme-light .annuncio-popup-close {
    color: #666;
}

.theme-light .annuncio-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.annuncio-popup-body {
    padding: 25px;
}

/* Type Badge in Popup */
.popup-type-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.popup-type-badge.seeking {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.popup-type-badge.offering {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

/* Author Section */
.popup-author-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    margin-bottom: 25px;
}

.theme-light .popup-author-section {
    background: rgba(0, 0, 0, 0.03);
}

.popup-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color, #FF6B35);
}

.popup-author-info {
    flex: 1;
}

.popup-author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 5px;
}

.theme-light .popup-author-name {
    color: #1a1a1a;
}

.popup-author-profession {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-bottom: 5px;
}

.theme-light .popup-author-profession {
    color: #666;
}

.popup-date {
    font-size: 0.85rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
}

.theme-light .popup-date {
    color: #999;
}

/* Title and Description */
.popup-annuncio-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.theme-light .popup-annuncio-title {
    color: #1a1a1a;
}

.popup-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    margin-bottom: 25px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.theme-light .popup-description {
    color: #333;
}

/* Meta Information */
.popup-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    margin-bottom: 25px;
}

.theme-light .popup-meta-info {
    background: rgba(0, 0, 0, 0.03);
}

.popup-category,
.popup-location {
    font-size: 0.95rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-light .popup-category,
.theme-light .popup-location {
    color: #555;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.popup-contact-btn,
.popup-delete-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-contact-btn {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

.popup-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.popup-delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.popup-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Mobile Responsive for Popup */
@media (max-width: 768px) {
    .annuncio-popup-overlay {
        padding: 10px;
    }
    
    .annuncio-popup-content {
        max-height: 100vh;
        border-radius: 16px;
    }
    
    .annuncio-popup-header {
        padding: 20px;
    }
    
    .annuncio-popup-header h2 {
        font-size: 1.4rem;
    }
    
    .annuncio-popup-body {
        padding: 20px;
    }
    
    .popup-author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .popup-annuncio-title {
        font-size: 1.3rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-contact-btn,
    .popup-delete-btn {
        width: 100%;
    }
}

/* User Cards - Hidden Users */
.user-card-slim.hidden-user {
    display: none;
}

/* Team Cards - Hidden Teams */
.team-card-slim.hidden-team {
    display: none;
}

/* Load More Button Container */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB74D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    font-size: 1.2rem;
}

.showing-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    display: none;  /* Hidden as requested */
}

.showing-count span {
    font-weight: 600;
    color: var(--primary-orange);
}

/* ============================================
   TEAMS SECTION STYLES
   ============================================ */

.teams-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
}

@media (max-width: 767px) {
    .teams-section {
        margin: 2rem 0;
        padding: 1rem;
    }
}

.theme-light .teams-section {
    background: rgba(0, 0, 0, 0.02);
}

.teams-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.team-search-filters-section {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .team-search-filters-section {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .team-search-filters-section .filter-buttons {
        width: 100%;
    }
}

.team-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card-slim {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.team-card-slim:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.team-card-slim:visited,
.team-card-slim:link {
    text-decoration: none;
    color: inherit;
}

.team-card-slim:active {
    transform: translateY(0);
}

.team-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
}

.team-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FFB74D 100%);
    color: white;
    font-size: 1.5rem;
}

.team-card-info {
    flex: 1;
    min-width: 0;
}

.team-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-card-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-card-location i {
    color: var(--primary-orange);
}

.team-card-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.team-stat {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.team-stat i {
    color: var(--primary-orange);
    font-size: 0.9rem;
}

/* Team card action buttons removed - cards are now fully clickable */

.no-teams-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Mobile Responsiveness for Teams */
@media (max-width: 768px) {
    .teams-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .teams-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .team-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-card-slim {
        padding: 1rem;
    }

    .team-card-logo {
        width: 50px;
        height: 50px;
    }

    .team-card-name {
        font-size: 1rem;
    }

    .team-card-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   SOCIETÀ E ISTITUZIONI SECTION
   ============================================ */

.societa-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
}

@media (max-width: 767px) {
    .societa-section {
        margin: 2rem 0;
        padding: 1rem;
    }
}

.theme-light .societa-section {
    background: rgba(0, 0, 0, 0.02);
}

.societa-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.societa-search-filters-section {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .societa-search-filters-section {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .societa-search-filters-section .filter-buttons {
        width: 100%;
    }
}

.societa-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.societa-card-slim {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.societa-card-slim:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.societa-card-slim:visited,
.societa-card-slim:link {
    text-decoration: none;
    color: inherit;
}

.societa-card-slim:active {
    transform: translateY(0);
}

.societa-card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
}

.societa-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.societa-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c42 100%);
    color: white;
    font-size: 1.5rem;
}

.societa-card-info {
    flex: 1;
    min-width: 0;
}

.societa-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.societa-card-type {
    font-size: 0.85rem;
    color: var(--primary-orange);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.societa-card-type i {
    color: var(--primary-orange);
}

.societa-card-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.societa-card-location i {
    color: var(--primary-orange);
}

.no-societa-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-societa-message p {
    font-size: 1rem;
    margin: 0;
}

/* Hidden class for load more functionality */
.hidden-societa {
    display: none !important;
}

/* Mobile Responsiveness for Società */
@media (max-width: 768px) {
    .societa-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .societa-title {
        font-size: 1.5rem;
    }

    .societa-filters {
        grid-template-columns: 1fr;
    }

    .societa-cards-grid {
        grid-template-columns: 1fr;
    }

    .societa-card-logo {
        width: 50px;
        height: 50px;
    }

    .societa-card-name {
        font-size: 1rem;
    }
}


/* Pagination Controls */
.pagination-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: var(--glass-backdrop, blur(10px) saturate(180%));
    border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.2));
    box-shadow: var(--glass-shadow, 0 8px 32px rgba(0, 0, 0, 0.1));
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-current {
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: var(--glass-backdrop, blur(10px) saturate(180%));
    border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.2));
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .pagination-current {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}
