/* ========================================
   LEADFUL CAROUSEL - 3 COLUMN LAYOUT
   280px | 600px | 320px = 1240px total
   ======================================== */

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === MAIN CONTAINER - 3 COLUMNS === */
.leadful-container-3col {
    display: grid;
    grid-template-columns: 280px 600px 320px;
    gap: 20px;
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ========================================
   LEFT COLUMN - 280px: User Info & Stats
   ======================================== */
.leadful-left-panel {
    width: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}

.user-details h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    color: #aaa;
}

/* Plan Info */
.plan-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

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

.plan-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
}

.credits-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.credits-used {
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.credits-text {
    font-size: 12px;
    color: #ccc;
}

/* Buy Credits Button */
.btn-buy-credits {
    width: 100%;
    background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.btn-buy-credits:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
}

/* Pipeline Stats */
.pipeline-stats {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.stat-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 13px;
    color: #aaa;
}

.stat-value {
    font-size: 20px;
    font-weight: 900;
    color: #FFD700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FFD700;
}

/* ========================================
   CENTER COLUMN - 600px: Filter + Screenshot
   ======================================== */
.leadful-center-panel {
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Category Filter */
.category-filter-panel {
    position: relative;
    z-index: 100;
}

.filter-toggle {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    border-color: #FFD700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 2px solid #FFD700;
    border-radius: 12px;
    margin-top: 8px;
    padding: 16px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.filter-dropdown.active {
    display: block;
}

.filter-level-panel h4 {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 13px;
    display: block;
}

.filter-option:hover {
    background: rgba(255, 215, 0, 0.2);
}

.filter-option.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-weight: 700;
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter-apply,
.btn-filter-reset {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter-apply {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    border: none;
}

.btn-filter-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 8px 0;
}

.hidden {
    display: none !important;
}

/* Screenshot Container - SCROLLABLE */
.screenshot-container {
    width: 600px;
    max-height: 70vh; /* 70% of viewport height */
    background: #000;
    border-radius: 16px;
    border: 2px solid #FFD700;
    overflow-x: hidden; /* No horizontal scroll */
    overflow-y: scroll; /* Enable vertical scroll */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Zoom Icon (oben rechts) */
.btn-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #FFD700;
    border: 2px solid #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.8;
    font-size: 24px;
    font-weight: 700;
}

.btn-zoom:hover {
    opacity: 1;
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    overflow: auto;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 40px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    border: 2px solid #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}


/* Custom Scrollbar (like .scrollcon) */
.screenshot-container::-webkit-scrollbar {
    width: 14px;
}

.screenshot-container::-webkit-scrollbar-track {
    background: #000;
    border-radius: 10px;
}

.screenshot-container::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

.screenshot-container::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

#currentScreenshot {
    width: 100%; /* Full width */
    height: auto; /* Auto height for full screenshot */
    display: block; /* Remove inline spacing */
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFD700;
    z-index: 10;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* === OVERLAY NAVIGATION BUTTONS (in der Mitte des Screenshots) === */
.btn-nav-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #FFD700;
    border: 2px solid #FFD700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.btn-nav-overlay:hover {
    opacity: 1;
    background: rgba(255, 215, 0, 0.9);
    color: #1a1a1a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.btn-nav-prev {
    left: 20px;
}

.btn-nav-next {
    right: 20px;
}

.keyboard-hint {
    text-align: center;
    color: #888;
    font-size: 12px;
}

/* ========================================
   RIGHT COLUMN - 320px: Shop Info & Actions
   ======================================== */
.leadful-right-panel {
    width: 320px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.shop-info-container {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid #FFD700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Shop Header */
.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #FFD700;
}

#shopName {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.3;
}

.shop-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.shop-link:hover {
    transform: scale(1.2);
    color: #FF0000;
}

/* Categories */
.shop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 60px;
}

.category-badge {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Action Buttons */
.shop-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-action {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-skip {
    background: #e0e0e0;
    color: #666;
}

.btn-skip:hover {
    background: #d0d0d0;
}

/* Notes */
.shop-notes {
    margin-bottom: 16px;
}

#shopNotes {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#shopNotes:focus {
    outline: none;
    border-color: #FFD700;
}

/* Progress */
.progress-indicator {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    padding-top: 16px;
    border-top: 2px solid #e0e0e0;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 2px solid #FFD700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
}

.pipeline-list {
    padding: 24px;
}

/* ========================================
   KEYWORD SEARCH
   ======================================== */
.keyword-search-panel {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

#keywordSearch {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #FFD700;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    transition: all 0.3s ease;
}

#keywordSearch:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.btn-search,
.btn-search-clear {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.btn-search-clear {
    background: #e0e0e0;
    color: #666;
    min-width: 44px;
}

.btn-search-clear:hover {
    background: #d0d0d0;
}

/* ========================================
   TEAM PROFILE BUTTON
   ======================================== */
.btn-team-profile {
    width: 100%;
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.btn-team-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* ========================================
   COMPANY MODAL
   ======================================== */
.modal-large {
    max-width: 900px;
}

.modal-body {
    padding: 24px;
}

.company-loading {
    text-align: center;
    padding: 60px 20px;
    color: #FFD700;
}

.company-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #FFD700;
}

.company-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.ai-report {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.team-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.team-link {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.team-link.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
    color: #fff;
}

.team-link.linkedin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.4);
}

.team-link.xing {
    background: linear-gradient(135deg, #126567 0%, #0E4F50 100%);
    color: #fff;
}

.team-link.xing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 101, 103, 0.4);
}

.company-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1280px) {
    .leadful-container-3col {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .leadful-left-panel,
    .leadful-center-panel,
    .leadful-right-panel {
        width: 100%;
        position: static;
    }
    
    .screenshot-container {
        width: 100%;
        height: 500px;
    }
}
