/* Custom Styles for Escorts Mallorca Theme */

:root {
    --em-primary-color: #4B2E5B;
    --em-secondary-color: #E91E63;
    --em-text-color: #333;
    --em-bg-light: #f5f5f5;
}

/* Body Reset */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Layout Wrapper */
.em-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles */
.em-sidebar {
    background-color: var(--em-primary-color);
    width: 256px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.em-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.em-logo img {
    max-height: 64px;
    width: auto;
}

.em-logo h1 {
    color: white;
    font-size: 1.875rem;
    font-weight: bold;
    line-height: 1.2;
}

.em-search {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.em-search label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.em-search input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
}

.em-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.em-search input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.em-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.em-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 1rem;
}

.em-sidebar-nav li {
    margin-bottom: 0.25rem;
}

.em-sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.3s;
}

.em-sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.em-main-content {
    flex: 1;
    margin-left: 256px;
    overflow-y: auto;
    background: white;
}

.em-top-banner {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 1.5rem;
    text-align: center;
}

.em-top-banner p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    font-weight: 500;
}

/* Language Switcher */
.em-language-switcher {
    display: inline-flex;
    gap: 5px;
    margin-left: 10px;
}

.em-lang-link {
    display: inline-block;
}

.em-lang-link img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

.em-lang-link.active {
    opacity: 0.7;
}

/* Subscribed Escorts Styling */
.em-subscribed-escort {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #9333ea;
    position: relative;
}

.em-subscribed-escort::before {
    content: "★ DESTACADA";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

/* Blog Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #6b7280;
    background-color: white;
    border: 1px solid #e5e7eb;
}

.pagination .page-numbers:hover {
    background-color: #f3f4f6;
    color: #9333ea;
    border-color: #9333ea;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: white;
    border-color: #9333ea;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.2);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6b7280;
}

.pagination .prev,
.pagination .next {
    padding: 0.5rem 1rem;
}

/* Blog Post Cards */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose Styling for Blog Content */
.prose {
    color: #374151;
    max-width: 65ch;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h1 {
    font-size: 2.25em;
}

.prose h2 {
    font-size: 1.875em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose a {
    color: #9333ea;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #7e22ce;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #9333ea;
    quotes: "\201C" "\201D" "\2018" "\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose code {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
}

.prose pre {
    color: #e5e7eb;
    background-color: #1f2937;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding: 0.8571429em 1.1428571em;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.7777778;
}

.prose-purple a {
    color: #9333ea;
}

.prose-purple a:hover {
    color: #7e22ce;
}

/* Hero Section */
.em-hero {
    position: relative;
    color: white;
    overflow: hidden;
}

.em-hero-slider {
    position: relative;
    width: 100%;
}

.em-hero-image {
    position: relative;
    height: 600px;
}

.em-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.em-hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.em-hero-nav-prev {
    left: 1rem;
}

.em-hero-nav-next {
    right: 1rem;
}

.em-hero-nav svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Filter Form */
.em-escort-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.em-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.em-filter-select {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
}

.em-filter-select option {
    background: var(--em-primary-color);
    color: white;
}

.em-filter-submit {
    background: var(--em-secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.em-filter-submit:hover {
    background: #c2185b;
}

/* Escort Cards */
.em-escort-card {
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.em-escort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.em-escort-card img {
    width: 100%;
    height: auto;
    display: block;
}

.em-escort-card .p-4 {
    text-align: center;
}

.em-escort-card a[href*="portfolio"],
.em-escort-card a[href*="VER PORTFOLIO"] {
    display: inline-block;
    margin: 0 auto;
    border: 2px solid #1f2937;
    color: #1f2937;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.em-escort-card a[href*="portfolio"]:hover,
.em-escort-card a[href*="VER PORTFOLIO"]:hover {
    background-color: #1f2937;
    color: white;
}

/* Footer */
.em-footer {
    background-color: var(--em-primary-color);
    margin-top: 60px;
}

.em-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.em-footer a:hover {
    color: var(--em-secondary-color);
}

/* Buttons */
.button,
button[type="submit"] {
    transition: all 0.3s;
}

.button:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .em-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .em-sidebar.open {
        transform: translateX(0);
    }

    .em-main-content {
        margin-left: 0;
    }

    .em-hero-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .em-hero-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 768px) {
    .em-filter-row {
        flex-direction: column;
    }

    .em-filter-select {
        width: 100%;
    }

    .em-hero h2 {
        font-size: 2rem;
    }

    .em-hero p {
        font-size: 1rem;
    }
}

/* Admin Styles */
.em-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.em-subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.em-subscription-plans .postbox {
    text-align: center;
}

.em-subscription-plans .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--em-secondary-color);
    margin: 15px 0;
}

/* Gallery */
.em-gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.em-gallery-list li {
    position: relative;
}

.em-remove-image,
.em-remove-gallery-image {
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Hero Slider Styles */
.em-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.em-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide Indicators */
.em-slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.em-slide-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.em-slide-indicator.active {
    background-color: white;
    width: 32px;
    border-radius: 6px;
}

/* Responsive adjustments for indicators */
@media (max-width: 768px) {
    .em-slide-indicator {
        width: 10px;
        height: 10px;
    }

    .em-slide-indicator.active {
        width: 24px;
    }
}