/**
 * XMLA Blacklist Portfolio - Public Styles
 * Glassmorphic Futuristic Design
 */

:root {
    --xmla-primary: #2B78B8;
    --xmla-primary-light: #3B8ED0;
    --xmla-success: #10b981;
    --xmla-danger: #ef4444;
    --xmla-warning: #f59e0b;
    --xmla-bg-dark: #0B1320;
    --xmla-bg-light: #F6F8FC;
    --xmla-text-dark: #0B1320;
    --xmla-text-light: rgba(255, 255, 255, 0.92);
    --xmla-text-muted: rgba(255, 255, 255, 0.82);
    --xmla-glass-bg: rgba(255, 255, 255, 0.06);
    --xmla-glass-border: rgba(255, 255, 255, 0.10);
    --xmla-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --xmla-shadow-lg: 0 20px 60px 0 rgba(0, 0, 0, 0.4);
}

/* Portfolio Container */
.xmla-portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.xmla-portfolio-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

/* Portfolio Controls */
.xmla-portfolio-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Search Box */
.xmla-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.xmla-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--xmla-glass-border);
    border-radius: 50px;
    background: var(--xmla-glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.xmla-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.xmla-search-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.xmla-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

/* Filter Tabs */
.xmla-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xmla-filter-tab {
    padding: 12px 24px;
    border: 2px solid var(--xmla-glass-border);
    border-radius: 50px;
    background: var(--xmla-glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xmla-filter-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.xmla-filter-tab.active {
    background: white;
    color: var(--xmla-primary);
    border-color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Favorites Toggle */
.xmla-favorites-toggle {
    margin-left: auto;
}

.xmla-btn-favorites {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--xmla-glass-border);
    border-radius: 50px;
    background: var(--xmla-glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xmla-btn-favorites:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

.xmla-favorites-count {
    background: var(--xmla-danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Portfolio Grid */
.xmla-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.xmla-portfolio-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.xmla-portfolio-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Portfolio Card */
.xmla-portfolio-item {
    animation: fadeInUp 0.6s ease;
}

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

.xmla-portfolio-card {
    background: var(--xmla-glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--xmla-glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xmla-portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--xmla-shadow-lg);
    border-color: white;
}

/* Card Image */
.xmla-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.xmla-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.xmla-portfolio-card:hover .xmla-card-image img {
    transform: scale(1.1);
}

/* Card Overlay */
.xmla-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xmla-portfolio-card:hover .xmla-card-overlay {
    opacity: 1;
}

.xmla-card-actions {
    display: flex;
    gap: 10px;
}

.xmla-btn-action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--xmla-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.xmla-portfolio-card:hover .xmla-btn-action {
    transform: translateY(0);
    opacity: 1;
}

.xmla-btn-action:nth-child(1) {
    transition-delay: 0.1s;
}

.xmla-btn-action:nth-child(2) {
    transition-delay: 0.15s;
}

.xmla-btn-action:nth-child(3) {
    transition-delay: 0.2s;
}

.xmla-btn-action:hover {
    background: var(--xmla-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.xmla-btn-favorite.active {
    background: var(--xmla-danger);
    color: white;
}

.xmla-btn-favorite.active svg {
    fill: white;
}

/* Card Content */
.xmla-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.xmla-card-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.xmla-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.xmla-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.xmla-category-badge,
.xmla-featured-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xmla-category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.xmla-featured-badge {
    background: var(--xmla-warning);
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

.xmla-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.xmla-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lightbox */
.xmla-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.xmla-lightbox.active {
    display: flex;
}

.xmla-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.xmla-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 1;
}

.xmla-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.xmla-lightbox-close:hover {
    transform: rotate(90deg);
}

#xmla-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.xmla-lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Empty States */
.xmla-empty-message,
.xmla-no-results {
    text-align: center;
    padding: 60px 20px;
    color: white;
    font-size: 18px;
}

/* Blacklist Checker */
.xmla-blacklist-checker {
    max-width: 100%;
    margin: 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #1a365d 0%, #0f2847 25%, #0d1f3a 50%, #0a1525 75%, #060b14 100%);
    min-height: 100vh;
    position: relative;
}

.xmla-blacklist-checker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 800px 600px at 10% 20%, rgba(45, 108, 223, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 90% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.xmla-checker-card {
    background: rgba(30, 58, 87, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 48px 60px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.xmla-checker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 142, 208, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.xmla-checker-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.xmla-checker-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.xmla-checker-header p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.xmla-input-group {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.xmla-form-group {
    position: relative;
    z-index: 1;
}

.xmla-label {
    display: block;
    color: var(--xmla-text-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.xmla-checker-input {
    flex: 1;
    padding: 20px 26px;
    border: 1px solid rgba(59, 142, 208, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    font-size: 17px;
    transition: all 0.3s ease;
}

.xmla-checker-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.xmla-checker-input:focus {
    outline: none;
    border-color: #3B8ED0;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(59, 142, 208, 0.15);
}

.xmla-checker-btn {
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B8ED0 0%, #2B6EA8 100%);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(59, 142, 208, 0.4);
    white-space: nowrap;
}

.xmla-checker-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 142, 208, 0.5);
    background: linear-gradient(135deg, #4A9EE0 0%, #3B8ED0 100%);
}

.xmla-checker-btn:active {
    transform: translateY(0);
}

.xmla-help-text {
    font-size: 14px;
    color: var(--xmla-text-muted);
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* Loading Spinner */
.xmla-checker-loading {
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.xmla-loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.xmla-spinner-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 4px solid transparent;
    border-top-color: var(--xmla-primary-light);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.xmla-spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.xmla-spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: var(--xmla-primary);
}

.xmla-spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: rgba(59, 142, 208, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.xmla-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--xmla-text-light);
    margin: 0;
}

.xmla-loading-subtext {
    font-size: 14px;
    color: var(--xmla-text-muted);
    margin: 5px 0 0 0;
}

/* Result Display */
.xmla-checker-result {
    text-align: center;
    position: relative;
    z-index: 1;
}

.xmla-result-header {
    margin-bottom: 24px;
}

.xmla-result-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    text-align: left;
}

.xmla-result-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.xmla-status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.xmla-status-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 142, 208, 0.3);
    transform: translateY(-2px);
}

.xmla-status-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.xmla-status-value,
.xmla-status-checked,
.xmla-status-blacklisted {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

.xmla-status-blacklisted.has-listings {
    color: #EF4444;
}

.xmla-status-blacklisted.all-clean {
    color: #10B981;
}

.xmla-blacklist-details {
    margin-top: 40px;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.xmla-blacklist-details.status-clean {
    border-color: rgba(16, 185, 129, 0.6) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15) !important;
}

.xmla-blacklist-details.status-blacklisted {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15) !important;
}

.xmla-blacklist-details h4 {
    color: #FFFFFF;
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
}

.xmla-blacklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xmla-blacklist-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 22px 26px;
    border-radius: 12px;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    gap: 20px;
}

.xmla-blacklist-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 142, 208, 0.3);
}

.xmla-blacklist-item-name {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xmla-blacklist-item-status {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.xmla-blacklist-item-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-style: italic;
}

.xmla-status-badge {
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.xmla-status-badge.clean {
    background: rgba(16, 185, 129, 0.25);
    color: #10B981;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.xmla-status-badge.listed {
    background: rgba(239, 68, 68, 0.25);
    color: #EF4444;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.xmla-info-link {
    color: #60A5FA;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.1);
    white-space: nowrap;
}

.xmla-info-link:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #93C5FD;
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

.xmla-result-info {
    background: var(--xmla-glass-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--xmla-glass-border);
}

.xmla-info-text {
    color: var(--xmla-text-light);
    line-height: 1.6;
    margin: 0;
}

.xmla-result-footer {
    position: relative;
    z-index: 1;
}

.xmla-btn-secondary {
    padding: 15px 30px;
    border: 1px solid var(--xmla-glass-border);
    border-radius: 50px;
    background: var(--xmla-glass-bg);
    backdrop-filter: blur(10px);
    color: var(--xmla-text-light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xmla-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--xmla-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 142, 208, 0.2);
}


.xmla-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.xmla-badge-clean {
    background: var(--xmla-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.xmla-badge-blacklisted {
    background: var(--xmla-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .xmla-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .xmla-portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .xmla-search-box {
        width: 100%;
    }

    .xmla-filter-tabs {
        justify-content: center;
    }

    .xmla-favorites-toggle {
        margin-left: 0;
    }

    .xmla-input-group {
        flex-direction: column;
    }

    .xmla-checker-card {
        padding: 30px 20px;
    }

    .xmla-info-grid {
        grid-template-columns: 1fr;
    }
}
