/* ============================================
   TEBBY'S PHOTOGRAPHY CLIENT PORTAL
   Flat Illustrative Design - No borders, no rounded corners, no shadows
   ============================================ */

/* Hero Banner */
.tebbys-portal-hero-banner {
    width: 100%;
    height: 280px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1452587925148-ce544e77e70d?w=1600') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.tebbys-portal-hero-banner h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: none;
    margin: 0;
}

/* Main Portal Container - Full Screen */
.tebbys-client-dashboard {
    background: #8a8a8a;
    max-width: 100%;
    margin: 0;
    padding: 30px 40px;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header Bar */
.tebbys-portal-top-bar {
    background: #1a2332;
    border-radius: 0;
    padding: 20px 30px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
}

.tebbys-portal-brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tebbys-logo-badge {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: #1a2332;
}

.tebbys-portal-brand-logo div:last-child {
    color: #ffffff;
}

.tebbys-portal-brand-logo div:last-child div:first-child {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tebbys-portal-brand-logo div:last-child div:last-child {
    font-size: 12px;
    color: #8899aa;
    margin-top: 4px;
}

/* Welcome Card */
.tebbys-dashboard-hero {
    background: #1a2332;
    border-radius: 0;
    padding: 35px 40px;
    margin-bottom: 25px;
    box-shadow: none;
    border-left: 6px solid #2563eb;
}

.tebbys-hero-tag {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.tebbys-dashboard-hero h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.tebbys-dashboard-hero p {
    color: #c0c8d4;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Navigation Tabs */
.tebbys-portal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 25px;
    padding-bottom: 0;
    border: none;
}

.tebbys-portal-tab-btn {
    background: #1a2332;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tebbys-portal-tab-btn:hover {
    background: #2a3547;
}

.tebbys-portal-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
}

/* Gallery Card */
.tebbys-gallery-shortcode-wrapper {
    background: #1a2332;
    border-radius: 0;
    padding: 35px;
    margin-bottom: 0;
    box-shadow: none;
}

.tebbys-gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a3547;
}

.tebbys-gallery-title h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-transform: capitalize;
}

.tebbys-gallery-title p {
    color: #8899aa;
    font-size: 13px;
    margin: 0;
}

.tebbys-gallery-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tebbys-action-pill {
    background: #2a3547;
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.tebbys-action-pill:hover {
    background: #3a4557;
}

.tebbys-fav-badge {
    background: #2a3547;
    border: none;
    color: #f472b6;
    padding: 10px 18px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Empty State (No Photos) */
.tebbys-empty-state {
    background: #ffffff;
    border-radius: 0;
    padding: 60px 40px;
    text-align: center;
    color: #1a2332;
}

.tebbys-empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.tebbys-empty-state h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a2332;
}

.tebbys-empty-state p {
    font-size: 14px;
    color: #666666;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gallery Grid */
.tebbys-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px;
}

.tebbys-gallery-grid.columns-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.tebbys-gallery-grid.columns-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.tebbys-gallery-grid.columns-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tebbys-gallery-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Responsive Gallery Grid */
@media (max-width: 768px) {
	.tebbys-gallery-grid.columns-5 {
		grid-template-columns: repeat(2, 1fr);
		gap: 4px;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.tebbys-gallery-grid.columns-5 {
		grid-template-columns: repeat(3, 1fr);
		gap: 4px;
	}
}

@media (min-width: 1025px) {
	.tebbys-gallery-grid.columns-5 {
		grid-template-columns: repeat(5, 1fr);
		gap: 4px;
	}
}

.tebbys-photo-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 4/3;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.tebbys-photo-card:hover {
    transform: none;
    opacity: 0.9;
}

.tebbys-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Watermark */
.tebbys-watermark-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 0, transparent 40px);
}

.tebbys-watermark-logo-badge {
    width: 50px;
    height: 50px;
    border-radius: 0;
    background: rgba(26, 35, 50, 0.8);
    border: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tebbys-watermark-logo-img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 8px;
    opacity: 0.9;
    filter: none;
}

/* Photo Selection Checkbox */
.tebbys-photo-checkbox-label {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tebbys-photo-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tebbys-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.tebbys-photo-checkbox:checked + .tebbys-checkbox-custom {
    background: #2563eb;
    border-color: #2563eb;
}

.tebbys-photo-checkbox:checked + .tebbys-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Selected Photo Card */
.tebbys-photo-card.selected {
    outline: 3px solid #2563eb;
    outline-offset: -3px;
}

/* Individual Download Button */
.tebbys-download-btn {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: rgba(16, 185, 129, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    position: relative;
}

.tebbys-download-btn::before {
    content: '';
    color: white;
    font-size: 14px;
}

.tebbys-download-btn:hover {
    background: #10b981;
    transform: none;
}

.tebbys-watermark-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Photo Controls */
.tebbys-photo-overlay-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s;
}

.tebbys-photo-card:hover .tebbys-photo-overlay-top {
    opacity: 1;
}

.tebbys-img-tag {
    background: rgba(26, 35, 50, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 0;
}

.tebbys-heart-btn {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(26, 35, 50, 0.9);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
}

.tebbys-heart-btn:hover {
    transform: none;
    background: #3a4557;
}

.tebbys-heart-btn.favorited {
    background: #ec4899;
    border-color: #ec4899;
}

.tebbys-photo-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 50, 0.95);
    padding: 20px 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.2s;
}

.tebbys-photo-card:hover .tebbys-photo-overlay-bottom {
    opacity: 1;
}

.tebbys-photo-overlay-bottom span:first-child {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.tebbys-photo-overlay-bottom span:last-child {
    color: #60a5fa;
    font-size: 12px;
}

/* ============================================
   LIGHTBOX PREVIEW WITH PRINT ORDERING
   ============================================ */

.tebbys-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: none;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tebbys-lightbox-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.tebbys-lightbox-content {
    background: #1a2332;
    border-radius: 0;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    position: relative;
}

.tebbys-lightbox-image-pane {
    flex: 2;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
    max-height: 90vh;
}

.tebbys-lightbox-image-pane img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}

/* Never show gallery watermark overlays or watermark images inside the lightbox preview */
.tebbys-lightbox-image-pane .tebbys-watermark-overlay,
.tebbys-lightbox-image-pane .tebbys-watermark-logo-img,
.tebbys-lightbox-image-pane .tebbys-watermark-logo-badge,
.tebbys-lightbox-image-pane .tebbys-watermark-text {
    display: none !important;
}

.tebbys-lightbox-print-pane {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 2px solid #2a3547;
    overflow-y: auto;
    max-width: 420px;
    background: #1a2332;
    color: #ffffff;
}

.tebbys-lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(26, 35, 50, 0.9);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 0;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tebbys-lightbox-close-btn:hover {
    background: #2a3547;
    transform: none;
}

.tebbys-lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.95);
    border: 2px solid rgba(255,255,255,0.25);
    color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    opacity: 1;
}

.tebbys-lightbox-nav-btn:hover {
    background: #1d4ed8;
    transform: translateY(-50%);
}

.tebbys-lightbox-prev-btn {
    left: 24px;
}

.tebbys-lightbox-next-btn {
    right: 444px; /* keep next arrow visible before the side panel */
}

@media (max-width: 900px) {
    .tebbys-lightbox-prev-btn {
        left: 16px;
    }
    .tebbys-lightbox-next-btn {
        right: 16px;
    }
}

.tebbys-lightbox-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tebbys-lightbox-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8899aa;
    margin-bottom: 12px;
}

.tebbys-lightbox-action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tebbys-lightbox-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 0;
    border: none;
    background: #2a3547;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tebbys-lightbox-btn:hover {
    background: #3a4557;
}

.tebbys-lightbox-btn.active {
    background: #2563eb;
}

.tebbys-like-btn {
    background: transparent;
    border: 2px solid #ec4899;
    color: #ec4899;
}

.tebbys-like-btn.liked {
    background: #ec4899;
    color: #ffffff;
}

.tebbys-like-btn:hover {
    background: #ec4899;
    color: #ffffff;
}

.tebbys-lightbox-comment-box {
    width: 100%;
    padding: 12px 16px;
    background: #2a3547;
    border: none;
    border-radius: 0;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
}

.tebbys-lightbox-comment-box:focus {
    outline: none;
    background: #1a2332;
    box-shadow: inset 0 0 0 2px #2563eb;
}

.tebbys-lightbox-comment-box::placeholder {
    color: #8899aa;
}

.tebbys-lightbox-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin-top: 10px;
}

.tebbys-lightbox-submit-btn:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: none;
}

.tebbys-print-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 15px;
}

.tebbys-print-option {
    padding: 14px 18px;
    background: #2a3547;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tebbys-print-option:hover {
    border-color: #2563eb;
    background: #3a4557;
}

.tebbys-print-option.selected {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
}

.tebbys-print-option-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.tebbys-print-option-price {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
}

.tebbys-lightbox-divider {
    height: 2px;
    background: #2a3547;
    margin: 20px 0;
}

/* Responsive Lightbox */
@media (max-width: 900px) {
    .tebbys-lightbox-content {
        flex-direction: column;
        max-height: 95vh;
    }

    .tebbys-lightbox-image-pane {
        min-height: 300px;
        max-height: 50vh;
    }

    .tebbys-lightbox-print-pane {
        max-width: 100%;
        padding: 25px;
    }
}

/* Buttons */
.tebbys-btn {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
}

.tebbys-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.tebbys-btn-primary:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .tebbys-client-dashboard {
        padding: 20px;
        margin: 20px;
    }

    .tebbys-portal-top-bar,
    .tebbys-dashboard-hero,
    .tebbys-gallery-shortcode-wrapper {
        padding: 25px;
    }

    .tebbys-dashboard-hero h2 {
        font-size: 24px;
    }

    .tebbys-portal-tabs {
        flex-wrap: wrap;
    }

    .tebbys-portal-tab-btn {
        padding: 10px 16px;
        font-size: 11px;
    }
}
