/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}


/* Full width container for homepage galleries */

.container.full-width {
    max-width: 100%;
    padding: 0 20px;
}


/* Header Styles */

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    width: 200px;
    background: white;
}

.search-btn {
    padding: 0.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #3db8b0;
}


/* Secondary Navigation */

.secondary-nav {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.secondary-nav-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-nav-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.secondary-nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.secondary-nav-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.secondary-nav-link:hover {
    background: #e9ecef;
    color: #212529;
}


/* Hero Section */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}


/* Section Styles */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


/* Gallery Grid - Updated for portrait style cards */

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
}


/* Desktop: 4-5 cards per row */

@media (min-width: 1200px) {
    .galleries-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .galleries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .galleries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card .gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card .gallery-image {
    position: relative;
    width: 100%;
    height: 400px;
    /* Increased height for portrait style */
    overflow: hidden;
    flex: 1;
}

.gallery-card .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}


/* New footer style for gallery cards */

.gallery-card .gallery-info {
    padding: 0;
    position: relative;
    z-index: 2;
}

.gallery-card .gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0.75rem 1rem 0.25rem 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card .gallery-title a {
    color: #333;
    text-decoration: none;
}

.gallery-card .gallery-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    color: #333;
    padding: 0 1rem 0.75rem 1rem;
    opacity: 0.9;
}

.gallery-card .gallery-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-card .gallery-date::before {
    content: "🗓️";
    font-size: 0.9rem;
}


/* Remove old gallery-model styling since it's not in the new design */

.gallery-card .gallery-model {
    display: none;
}


/* Load More Button */

.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: #3db8b0;
}


/* Single Gallery Page Styles */

.gallery-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.gallery-info {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-title-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.gallery-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    align-items: center;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gallery-meta .model-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gallery-meta .model-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.gallery-card .gallery-model .model-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.gallery-card .gallery-model .model-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.gallery-description {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.gallery-pictures {
    padding: 1rem 0;
}

.pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.picture-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.picture-item:hover {
    transform: translateY(-5px);
}

.picture-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-picture {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-galleries {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
}

.related-galleries .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}


/* Responsive adjustments for gallery page */

@media (max-width: 768px) {
    .gallery-title-section h1 {
        font-size: 2rem;
    }
    .gallery-meta {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .pictures-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    .gallery-picture {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-title-section h1 {
        font-size: 1.5rem;
    }
    .pictures-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    .gallery-picture {
        height: 120px;
    }
}


/* Toplist Styles */

.toplist-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

.toplist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}


/* Partners Page Styles */

.partners-section {
    padding: 3rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    gap: 1rem;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.partner-rank {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.partner-content {
    flex: 1;
}

.partner-title {
    margin-bottom: 0.5rem;
}

.partner-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.partner-title a:hover {
    color: var(--primary-color);
}

.partner-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.partner-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.traffic-today {
    color: var(--primary-color);
    font-weight: 600;
}

.traffic-total {
    color: var(--secondary-color);
    font-weight: 600;
}

.partner-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.partner-tags .tag {
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}


/* Stats Summary */

.stats-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.toplist-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.toplist-rank {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.toplist-content {
    flex: 1;
}

.toplist-title {
    margin-bottom: 0.5rem;
}

.toplist-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.toplist-title a:hover {
    color: var(--primary-color);
}

.toplist-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.toplist-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    flex-wrap: wrap;
}

.traffic-count {
    color: var(--primary-color);
    font-weight: 600;
}

.total-traffic {
    color: var(--secondary-color);
    font-weight: 600;
}


/* Model Page Styles */

.model-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.model-profile {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.model-main-image {
    flex-shrink: 0;
    width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.model-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-info-main {
    flex: 1;
}

.model-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}


/* Model Tags */

.model-tags {
    margin-bottom: 1.5rem;
}


/* Gallery Tags */

.gallery-tags {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.gallery-tags .tags-label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--text-color);
}

.gallery-tags .tag-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border: 1px solid var(--primary-color);
}

.gallery-tags .tag-link:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tags-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tag-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Tag Page Styles */

.tag-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}


/* Tags Page Styles */

.tags-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.tags-info {
    text-align: center;
}

.tags-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tags-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tags-section {
    padding: 2rem 0;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tag-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.tag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tag-card .tag-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tag-card .tag-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.tag-card .tag-title a:hover {
    color: var(--secondary-color);
}

.tag-card .tag-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tag-card .tag-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.tag-card .tag-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tag-card .tag-stats i {
    color: var(--primary-color);
}

.no-tags {
    text-align: center;
    padding: 3rem 0;
}

.tag-info {
    text-align: center;
}

.tag-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tag-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tag-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.tag-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.tag-stats .stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.tag-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.no-galleries {
    text-align: center;
    padding: 3rem 0;
}

.no-galleries h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.no-galleries p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.model-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}


/* Model Details Section */

.model-details-section {
    padding: 2rem 0;
    background: #f8f9fa;
}

.model-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.details-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.details-card.full-width {
    grid-column: 1 / -1;
}

.details-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}


/* Accordion Styles */

.accordion-card {
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.accordion-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
}

.accordion-icon {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.open {
    max-height: 1000px;
    padding-top: 1rem;
}


/* Model Stats Grid */

.model-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #333;
}

.stat-label {
    font-weight: 500;
    color: #333;
}

.stat-value {
    font-weight: 600;
    color: #667eea;
}


/* Profile Pictures Grid */

.profile-pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.profile-picture-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-picture-item:hover {
    transform: scale(1.05);
}

.profile-picture-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
}

.biography-content {
    line-height: 1.6;
    color: #555;
}


/* Responsive */

@media (max-width: 768px) {
    .model-profile {
        flex-direction: column;
        text-align: center;
    }
    .model-main-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .model-details-grid {
        grid-template-columns: 1fr;
    }
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .detail-value {
        text-align: left;
    }
    .model-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-pictures-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}


/* Backlinks Section */

.backlinks-section {
    background: var(--light-gray);
    padding: 3rem 0;
}

.backlinks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.backlinks-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.add-backlink-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-backlink-btn:hover {
    background: var(--primary-dark);
}

.backlinks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.backlink-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.backlink-item:hover {
    transform: translateY(-2px);
}

.backlink-info h4 {
    margin: 0 0 0.5rem 0;
}

.backlink-info h4 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
}

.backlink-info h4 a:hover {
    text-decoration: underline;
}

.backlink-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.domain {
    font-weight: 600;
}

.no-backlinks {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}


/* 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);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.backlink-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.cancel-btn:hover {
    background: #5a6268;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.backlinks-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.backlinks-form h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.backlinks-form p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #e55a5a;
}

.backlinks-list {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.backlinks-list h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.backlinks-grid {
    display: grid;
    gap: 1rem;
}

.backlink-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.backlink-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.backlink-item h4 {
    margin-bottom: 0.5rem;
}

.backlink-item h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.backlink-item h4 a:hover {
    text-decoration: underline;
}

.backlink-item p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.backlink-meta {
    font-size: 0.8rem;
    color: #888;
}

.no-backlinks {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}


/* Footer */

.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}


/* Responsive Design */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    .model-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .backlinks-content {
        grid-template-columns: 1fr;
    }
    .galleries-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .toplist-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-search {
        flex-direction: column;
    }
    .model-stats {
        grid-template-columns: 1fr;
    }
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Utility Classes */

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Legal Pages Styles */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content .page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section ul,
.legal-section ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}


/* 404 Page Styles */

.error-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60vh;
    padding: 4rem 0;
    gap: 3rem;
}

.error-content {
    flex: 1;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a5a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #3db8b0;
    transform: translateY(-2px);
}

.error-help {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.error-help h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-help ul {
    list-style: none;
    padding: 0;
}

.error-help li {
    margin-bottom: 0.5rem;
    color: #666;
}

.error-help a {
    color: var(--primary-color);
    text-decoration: none;
}

.error-help a:hover {
    text-decoration: underline;
}

.error-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-illustration {
    max-width: 400px;
    height: auto;
}

.popular-content {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.content-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.suggestion-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.suggestion-card:hover {
    transform: translateY(-5px);
}

.suggestion-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.suggestion-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.suggestion-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.suggestion-link:hover {
    background-color: #e55a5a;
}


/* Random Models Section Styles */

.random-models-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
}


/* Desktop: 4-5 cards per row */

@media (min-width: 1200px) {
    .models-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .models-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.model-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.model-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.model-image {
    position: relative;
    width: 100%;
    height: 400px;
    /* Increased height for portrait style */
    overflow: hidden;
    flex: 1;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
}


/* New footer style for model cards */

.model-info {
    padding: 0;
    background: #fff;
    /* Dark purple background */
    color: #333;
    position: relative;
    z-index: 2;
}

.model-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 0.75rem 1rem 0.25rem 1rem;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    color: #333;
    padding: 0 1rem 0.75rem 1rem;
    opacity: 0.9;
}

.model-galleries,
.model-pictures,
.model-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.model-galleries::before {
    content: "📸";
    font-size: 0.9rem;
}

.model-pictures::before {
    content: "🖼️";
    font-size: 0.9rem;
}

.model-views::before {
    content: "👁️";
    font-size: 0.9rem;
}


/* Hide old model details since they're not in the new design */

.model-details,
.model-nationality,
.model-ethnicity,
.model-rating {
    display: none;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #e55a5a;
    transform: translateY(-2px);
}


/* Search Page Styles */

.search-section {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.search-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.75rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #e55a5a;
}

.search-filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.9rem;
    background-color: white;
}

.search-results {
    margin-top: 2rem;
}

.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.results-info {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.search-suggestions {
    margin-top: 3rem;
    text-align: center;
}

.suggestions-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.search-suggestion {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.search-suggestion:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.no-results-content p {
    color: #666;
    margin-bottom: 2rem;
}

.suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* Pagination Styles */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
}


/* Enhanced pagination for tag pages */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-ellipsis {
    padding: 0.5rem;
    color: #666;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    min-width: 2.5rem;
    text-align: center;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    .partner-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    .partner-rank {
        align-self: center;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .error-page {
        flex-direction: column;
        text-align: center;
    }
    .error-code {
        font-size: 6rem;
    }
    .error-title {
        font-size: 2rem;
    }
    .error-actions {
        justify-content: center;
    }
    .error-image {
        order: -1;
    }
    .error-illustration {
        max-width: 300px;
    }
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .model-image {
        height: 300px;
        /* Keep portrait style on mobile */
    }
    .model-name {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    .model-stats {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .search-row {
        flex-direction: column;
    }
    .search-filters {
        flex-direction: column;
        gap: 1rem;
    }
    .results-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    .popular-searches {
        flex-direction: column;
        align-items: center;
    }
    .suggestions {
        flex-direction: column;
        align-items: center;
    }
    /* Responsive styles for tag pages */
    .tag-header {
        padding: 1.5rem 0;
    }
    .tag-title {
        font-size: 2rem;
    }
    .tag-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .tags-list {
        gap: 0.25rem;
    }
    .tag-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}


/* Models Page Styles */

.models-page {
    padding: 2rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.main-content-area {
    min-height: 500px;
}

.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
}

.filters-section {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.search-form {
    margin-bottom: 1rem;
}

.search-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #e55a5a;
}

.filter-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.85rem;
    background: white;
    min-width: 140px;
}

.active-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.filter-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.remove-filter {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.remove-filter:hover {
    text-decoration: underline;
}


/* Sidebar Styles */

.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}


/* Modern Quick Stats */

.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
    color: #333;
}


/* Categories Lists */

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-link:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
}


/* Responsive Design */

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sidebar {
        position: static;
    }
    .search-row {
        flex-direction: column;
    }
    .filter-row {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}


/* Featured galleries section */

.featured-galleries {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin: 2rem 0;
}

.featured-galleries .section-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}


/* Featured galleries dirty section (for gallery pages) */

.featured-galleries-dirty {
    background: #f5f5f5;
    padding: 3rem 0;
    margin: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.featured-galleries-dirty .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-galleries-dirty .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.featured-galleries-dirty .section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.featured-galleries-dirty .galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .featured-galleries-dirty .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .featured-galleries-dirty .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Related galleries section with featured row */

.related-galleries .featured-row {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.related-galleries .featured-row .gallery-card {
    border: 2px solid #667eea;
    position: relative;
}

.related-galleries .featured-row .gallery-card::before {
    content: "Featured";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.related-galleries .related-row {
    margin-top: 1rem;
}

.related-galleries .related-row .gallery-card {
    border: 1px solid #e0e0e0;
}


/* Own galleries section */

.own-galleries {
    padding: 3rem 0;
    background: #f8f9fa;
}

.own-galleries .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.own-galleries .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.own-galleries .section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* Rating and Favorites System Styles */

.rating-favorites-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.rating-favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.rating-favorites-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}


/* Rating System */

.rating-system {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rating-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}


/* Favorites System */

.favorites-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.favorite-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.favorite-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.favorited {
    background: #e74c3c;
}

.favorite-btn.favorited:hover {
    background: #c0392b;
}

.favorites-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}


/* Notifications */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--primary-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-info {
    border-left-color: #3498db;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-right: 0.5rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: var(--text-color);
}


/* Responsive design */

@media (max-width: 768px) {
    .rating-favorites-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    .rating-favorites-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .rating-system {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .rating-stars {
        gap: 0.5rem;
    }
    .star {
        font-size: 1.75rem;
    }
    .favorites-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .favorite-btn {
        width: 100%;
        justify-content: center;
    }
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .galleries-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    .gallery-card .gallery-image {
        height: 350px;
        /* Keep portrait style on mobile */
    }
    .gallery-card .gallery-title {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    .gallery-card .gallery-stats {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .model-image {
        height: 300px;
        /* Keep portrait style on mobile */
    }
    .model-name {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    .model-stats {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .gallery-card .gallery-image {
        height: 280px;
        /* Keep portrait style on small screens */
    }
    .gallery-card .gallery-title {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    .gallery-card .gallery-stats {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .model-image {
        height: 250px;
        /* Keep portrait style on small screens */
    }
    .model-name {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    }
    .model-stats {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.75rem 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    .featured-galleries .section-title,
    .own-galleries .section-title {
        font-size: 2rem;
    }
}

.gallery-card .gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 3rem;
    color: #666;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-card .gallery-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-card .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.no-galleries {
    text-align: center;
    padding: 3rem 0;
}

.no-galleries h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.no-galleries p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.debug-info h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.debug-info p {
    margin: 0.5rem 0;
    color: var(--text-muted);
    font-family: monospace;
}


/* Profile Thumbnails on Model Header */

.profile-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.profile-thumbnail {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.profile-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Lightbox Modal */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Responsive adjustments for profile thumbnails */

@media (max-width: 768px) {
    .profile-thumbnails {
        gap: 0.3rem;
        margin-top: 0.8rem;
    }
    .profile-thumbnail {
        width: 150px;
        height: 150px;
    }
    .lightbox-content {
        padding: 1rem;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-thumbnail {
        width: 145px;
        height: 145px;
    }
}


/* Latest Searches Styles */

.latest-searches {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latest-searches li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.latest-searches li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.25rem 0;
}

.latest-searches li a:hover {
    color: white;
}

.search-count {
    color: #888;
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 0.5rem;
}

.latest-searches li a:hover .search-count {
    color: #ccc;
}


/* Social Media Links Styles */

.social-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-media-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-media-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
    color: #333;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.social-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.social-platform {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.social-action {
    font-size: 0.85rem;
    color: #666;
    opacity: 0.8;
}


/* Platform-specific colors */

.social-instagram .social-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-onlyfans_free .social-icon {
    background: linear-gradient(45deg, #00b4d8, #0077b6);
}

.social-onlyfans_paid .social-icon {
    background: linear-gradient(45deg, #ffd700, #ffb347);
}

.social-tiktok .social-icon {
    background: linear-gradient(45deg, #000000, #25f4ee, #fe2c55);
}

.social-youtube .social-icon {
    background: #ff0000;
}

.social-twitter .social-icon {
    background: #1da1f2;
}

.social-facebook .social-icon {
    background: #1877f2;
}

.social-official_website .social-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}


/* Hover effects for each platform */

.social-instagram:hover {
    border-color: #e6683c;
}

.social-onlyfans_free:hover {
    border-color: #00b4d8;
}

.social-onlyfans_paid:hover {
    border-color: #ffd700;
}

.social-tiktok:hover {
    border-color: #fe2c55;
}

.social-youtube:hover {
    border-color: #ff0000;
}

.social-twitter:hover {
    border-color: #1da1f2;
}

.social-facebook:hover {
    border-color: #1877f2;
}

.social-official_website:hover {
    border-color: #667eea;
}


/* Responsive design for social media grid */

@media (max-width: 768px) {
    .social-media-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .social-media-link {
        padding: 0.75rem;
    }
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 0.75rem;
    }
    .social-platform {
        font-size: 0.9rem;
    }
    .social-action {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-media-link {
        padding: 0.5rem;
    }
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
}


/* Related Babes Section */

.related-babes-section {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.related-babes-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-babes-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.related-babes-section .section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.related-babes-section .models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-babes-section .model-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.related-babes-section .model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-babes-section .model-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-babes-section .model-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.related-babes-section .model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-babes-section .model-card:hover .model-image img {
    transform: scale(1.05);
}

.related-babes-section .model-info {
    padding: 1rem;
}

.related-babes-section .model-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-babes-section .model-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-babes-section .gallery-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}


/* Responsive design for related babes section */

@media (max-width: 768px) {
    .related-babes-section .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .related-babes-section .model-image {
        height: 200px;
    }
    .related-babes-section .section-title {
        font-size: 2rem;
    }
    .related-babes-section .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .related-babes-section .models-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .related-babes-section .model-image {
        height: 180px;
    }
    .related-babes-section .model-name {
        font-size: 1rem;
    }
    .related-babes-section .gallery-count {
        font-size: 0.8rem;
    }
}