/* styles.css - Stock Photo Marketplace & Digital Copyright Protection System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Global Image Copyright Protection --- */
img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Allow avatar/logo images to be seen but not dragged */
.logo-icon img,
.author-avatar,
#profileAvatar {
    pointer-events: auto;
}

.preview-img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.preview-box {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}


:root {
    /* Theme - Light Mode */
    --bg-primary: #0f172a;
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: #e0f2fe;
    
    --copyright-green: #059669;
    --copyright-bg: #ecfdf5;
    --copyright-border: #6ee7b7;
    
    --warning-red: #dc2626;
    --warning-bg: #fef2f2;
    --warning-border: #fca5a5;

    --gold-cert: #d97706;
    --gold-bg: #fffbe6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 30px -10px rgb(0 0 0 / 0.2);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-ui: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-surface: #151c2c;
    --bg-secondary: #1e293b;
    --border-color: #334155;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --accent-primary: #38bdf8;
    --accent-hover: #7dd3fc;
    --accent-light: #1e293b;
    
    --copyright-green: #10b981;
    --copyright-bg: #064e3b33;
    --copyright-border: #047857;
    
    --warning-red: #ef4444;
    --warning-bg: #7f1d1d33;
    --warning-border: #991b1b;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0284c7, #0d9488);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    font-weight: 700;
}

.nav-search {
    flex: 1;
    max-width: 440px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background-color: var(--bg-surface);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-copyright {
    background-color: var(--copyright-bg);
    color: var(--copyright-green);
    border-color: var(--copyright-border);
}
.btn-copyright:hover {
    background-color: var(--copyright-green);
    color: white;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
.btn-icon:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.05);
}

/* Sub-header Category Bar */
.category-bar {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.cat-chip {
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-chip:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.cat-chip.active {
    background-color: var(--accent-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Main Layout */
.main-wrapper {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Banner */
.copyright-banner {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid var(--copyright-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.banner-badge {
    width: 48px;
    height: 48px;
    background-color: var(--copyright-green);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.banner-text h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.banner-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Dedicated Single Page Detail Layout */
.single-page-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-list a:hover {
    color: var(--accent-primary);
}

.view-section {
    animation: fadeInView 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Photo Gallery Grid (Masonry style look) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.photo-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.photo-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #0b0f19;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-img {
    transform: scale(1.05);
}

.photo-badge-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.photo-price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-price-badge.free {
    background: rgba(5, 150, 105, 0.9);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
    padding: 1.25rem 1rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.photo-card-info {
    padding: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
}

.author-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-title-text {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: var(--bg-surface);
    z-index: 10;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background-color: var(--bg-main);
}

/* Photo Detail Viewer Modal */
.photo-viewer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

@media (max-width: 850px) {
    .photo-viewer-grid {
        grid-template-columns: 1fr;
    }
}

.preview-box {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #050811;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.preview-img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.watermark-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    user-select: none;
    display: none;
}

.watermark-overlay.active {
    display: block;
}

.license-options {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.license-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.license-option-card:last-child {
    margin-bottom: 0;
}

.license-option-card.selected {
    border-color: var(--accent-primary);
    background-color: var(--accent-light);
}

.exif-box {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}

.exif-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Futuristic Cyber-Glassmorphism Digital Fingerprint Badge Component */
.copyright-proof-box {
    background: linear-gradient(135deg, #09131d 0%, #112233 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.75rem;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.copyright-proof-box::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(16, 185, 129, 0.15), transparent);
    animation: scanLaser 4s infinite linear;
    pointer-events: none;
}

@keyframes scanLaser {
    0% { top: -100%; }
    100% { top: 100%; }
}

.proof-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px rgba(255, 255, 255, 0.1);
}

.proof-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: #34d399;
}

.fingerprint-icon-glow {
    width: 38px;
    height: 38px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.stamp-box {
    border: 1.5px solid #10b981;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.cyber-hash-box {
    background: #040911;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    position: relative;
}

.cyber-hash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.cyber-hash-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hash-val {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    color: #6ee7b7;
    word-break: break-all;
    background: transparent;
    padding: 0;
    line-height: 1.5;
}

.copy-hash-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-hash-btn:hover {
    background: #10b981;
    color: #000;
    border-color: #10b981;
}

.verify-pills-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.verify-pill {
    font-size: 0.73rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.verify-pill.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* Form inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.copyright-opt-in {
    background-color: var(--copyright-bg);
    border: 1px solid var(--copyright-border);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.copyright-opt-in input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--copyright-green);
    cursor: pointer;
}

/* Certificate Modal View Styling */
.cert-document {
    background-color: #ffffff;
    color: #111827;
    border: 8px double #d97706;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(217, 119, 6, 0.06);
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.cert-header {
    margin-bottom: 1.5rem;
}

.cert-logo-badge {
    width: 64px;
    height: 64px;
    background-color: #d97706;
    color: white;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cert-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #854d0e;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cert-sub-title {
    font-size: 0.83rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cert-divider {
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d97706, transparent);
    margin: 1.25rem auto;
}

.cert-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    text-align: left;
}

.cert-details-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

.cert-details-table td:first-child {
    font-weight: 700;
    color: #4b5563;
    width: 35%;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left-color: var(--copyright-green);
}

.toast-error {
    border-left-color: var(--warning-red);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    max-width: 1400px;
    margin: 1.5rem auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Upload Drop Zone ── */
.upload-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.upload-drop-zone:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.upload-drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--accent-light);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.upload-drop-zone.has-image {
    border-style: solid;
    border-color: var(--copyright-green);
    padding: 0.75rem;
    background: var(--bg-surface);
}

