/* About */
.about-page {
    max-width: 1100px;
    margin: 40px auto 80px;
    padding: 0 24px;
    color: #0f172a;
}

.about-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin: 0;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #111827;
}

.lede {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    max-width: 720px;
}

.about-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.about-button {
    background: #0f172a;
    color: #f9fafb;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.about-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 4px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 32px 0 28px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.about-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #0f172a;
}

.about-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px;
    margin: 0 0 32px 0;
    background: #0f172a;
    color: #f9fafb;
    border-radius: 14px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
}

.metric-label {
    font-size: 14px;
    color: #cbd5e1;
}

.about-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.about-secondary-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.about-secondary-card h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #111827;
}

.about-secondary-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .about-hero h1 {
        font-size: 30px;
    }

    .about-page {
        margin-top: 24px;
    }
}

/* Legal Pages (Privacy & Terms) */
.legal-page {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 24px;
    color: #0f172a;
}

/* Founder Page */
.founder-page .legal-hero {
    border-bottom: none;
    margin-bottom: 24px;
}

.founder-role {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

.about-founder {
    margin-top: 32px;
}

.about-founder a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-founder a:hover {
    color: #1e40af;
}

.legal-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-hero h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #111827;
}

.legal-updated {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.legal-section {
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin: 20px 0 10px 0;
}

.legal-section p {
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.legal-section ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.legal-section li {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-section a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: #1e40af;
}

.contact-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 12px;
}

.contact-card p {
    margin: 0 0 6px 0;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    margin-top: 40px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-align: center;
}

.legal-footer p {
    color: #4b5563;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.legal-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-button {
    background: #0f172a;
    color: #f9fafb;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.legal-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 4px;
}

.legal-link:hover {
    color: #0f172a;
    border-bottom-color: #9ca3af;
}

@media (max-width: 640px) {
    .legal-hero h1 {
        font-size: 28px;
    }

    .legal-page {
        margin-top: 24px;
    }

    .legal-section h2 {
        font-size: 19px;
    }
}

/* Footer */
.site-footer {
    background: #ffffff;
    color: #111827;
    border-top: 1px solid #e5e7eb;
    padding: 32px 24px 24px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
}

.footer-tagline {
    font-size: 13px;
    color: #6b7280;
}

.footer-copy {
    margin: 8px 0 0 0;
    color: #4b5563;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.footer-column a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-column a:hover {
    color: #0f172a;
}

.footer-disabled {
    color: #9ca3af;
    font-weight: 600;
}

.footer-note {
    color: #6b7280;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
}

.footer-divider {
    opacity: 0.5;
}

.footer-legal-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #1f2937;
}

@media (max-width: 720px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*
      /\
     /  \       Airframe, an aircraft photography platform
    /    \      Zak
   /  \/  \     Morris
  /   /\   \
 /___/  \___\
*/

html {
  scrollbar-gutter: stable;
}


body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
nav a { margin-right: 10px; }
ul { list-style: none; padding: 0; }
li { margin-bottom: 20px; }

main {
    padding: 20px;
}

.upload-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
}

.upload-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.upload-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 30px 0;
    color: #222;
    text-align: center;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #2c3e50;
    color: white;
}

.step.completed .step-number {
    background: #1a73e8;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.step.active .step-label {
    color: #2c3e50;
    font-weight: 600;
}

.step.completed .step-label {
    color: #1a73e8;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 26px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    border-left: 4px solid #c33;
}

.upload-form {
    position: relative;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.step-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
}

.ai-detect-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 20px;
}

.ai-detect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-chip {
    background: #1a73e8;
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ai-status {
    font-size: 13px;
    color: #475569;
}

.ai-status.ai-error {
    color: #c0392b;
}

.ai-detect-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-detect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ai-detect-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.ai-detect-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.ai-detect-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
}

.ai-detect-actions {
    display: flex;
    justify-content: flex-end;
}

.ai-detect-actions .btn-next {
    flex: 0 0 auto;
    min-width: 200px;
}

.optional {
    color: #999;
    font-weight: normal;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    text-align: center;
    margin-bottom: 30px;
}

.file-upload-area:hover {
    border-color: #2c3e50;
    background: #f5f5f5;
}

.file-upload-area.has-file {
    border-color: #1a73e8;
    background: #1a73e83f;
    color: #fff;
}

.file-upload-area svg {
    margin-bottom: 16px;
    color: #666;
}

.file-upload-area.has-file svg {
    color: #fff;
}

.upload-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

.upload-hint {
    font-size: 13px;
    color: #999;
}

.file-name {
    margin-top: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 4px;
    font-size: 14px;
    color: #1a73e8;
    font-weight: 500;
}

.file-upload-area input[type="file"] {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group textarea {
    resize: vertical;
    line-height: 1.5;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-back {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-next,
.btn-submit {
    background: #2c3e50;
    color: white;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    background: #1a252f;
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-submit {
    background: #27ae60;
}

.btn-submit:hover {
    background: #229954;
}

/* Profile */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: #0b1224;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    font-size: 42px;
    font-weight: 700;
    color: #cbd5e1;
}

.profile-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-role-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-role-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-role-badge img {
    width: 42px;
    height: 34px;
    object-fit: contain;
    border-radius: 4px;
}

.profile-role-badge .role-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Role-specific badge colors */
.profile-role-badge.role-admin {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.25));
    border-color: rgba(56, 189, 248, 0.45);
}

.profile-role-badge.role-admin .role-label {
    color: #cbd5e1;
}

.profile-role-badge.role-moderator {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(79, 70, 229, 0.25));
    border-color: rgba(99, 102, 241, 0.45);
}

.profile-role-badge.role-moderator .role-label {
    color: #cbd5e1;
}

.profile-role-badge.role-early-user {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(6, 182, 212, 0.25));
    border-color: rgba(34, 211, 238, 0.45);
}

.profile-role-badge.role-early-user .role-label {
    color: #cbd5e1;
}

.profile-role-badge.role-user {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-role-badge.role-user .role-label {
    color: #cbd5e1;
}


.profile-name {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.02em;
}

.profile-handle {
    margin: 0;
    font-size: 14px;
    text-transform: lowercase;
    color: #cbd5e1;
    letter-spacing: 0.05em;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #cbd5e1;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: #cbd5e1;
}

/* Settings button - hidden on desktop, shown on mobile */
.profile-settings-btn {
    display: none;
}

.profile-gallery {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.section-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: #6b7280;
}

.section-heading h2 {
    margin: 2px 0 0 0;
    font-size: 22px;
    color: #0f172a;
}

.section-subtext {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.muted-dot {
    color: #d1d5db;
}

.profile-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.profile-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.photo-title {
    font-weight: 700;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-location {
    margin-left: auto;
    color: #6b7280;
}

@media (max-width: 768px) {
    .profile-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-summary {
        align-items: center;
    }

    .profile-header-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .profile-identity {
        align-items: center;
    }

    .profile-role-badge {
        margin-top: 4px;
    }

    .profile-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .upload-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .file-upload-area {
        padding: 40px 20px;
    }
    
    .progress-steps {
        padding: 0;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .step-line {
        margin: 0 4px;
        margin-bottom: 24px;
    }
}

/* Upload status page */
.status-container {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px;
}

.status-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-meta {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.status-title {
    font-size: 28px;
    margin: 0;
    color: #111827;
}

.status-subtitle {
    margin: 0;
    color: #4b5563;
}

.status-summary {
    margin-top: 8px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.status-label {
    color: #6b7280;
    font-weight: 700;
}

.status-value {
    color: #111827;
    font-weight: 700;
}

.status-value.mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.status-chip {
    padding: 6px 10px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-approved {
    background: #ecfdf3;
    color: #15803d;
}

.status-rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.status-link-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-link {
    color: #1a73e8;
    word-break: break-all;
}

.status-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.status-hint {
    color: #4b5563;
    font-size: 14px;
    margin-right: auto;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #1559b6;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-ghost {
    background: #eef2ff;
    color: #312e81;
    border: 1px solid #c7d2fe;
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: #e0e7ff;
}

@media (max-width: 640px) {
    .status-card {
        padding: 24px;
    }

    .status-row {
        align-items: flex-start;
    }
}

.home-container,
.liked-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.home-header,
.liked-header {
    text-align: center;
    margin-bottom: 50px;
}

.liked-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.liked-subtitle {
    color: #8b9dc3;
    font-size: 1.1rem;
}

.hero-card-wrapper {
    position: relative;
    margin-bottom: 28px;
}

.hero-admin-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

.hero-card {
    position: relative;
    display: block;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.01);
    transition: transform 0.35s ease, filter 0.35s ease;
    border-radius: inherit;
}

.hero-card:hover .hero-image {
    transform: scale(1.03);
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    border-radius: inherit;
}

.hero-meta {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-author {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-aircraft {
    font-size: 14px;
    opacity: 0.92;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-registration {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 14px;
    font-weight: 600;
    font-size: 14px;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.home-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.home-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.photo-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.photo-chip-divider {
    opacity: 0.6;
}

.photo-chip .photo-registration {
    background: rgba(255, 255, 255, 0.18);
    color: #575656;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.photo-info {
    padding: 0px  12px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.photo-aircraft {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.photo-registration {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

.photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.photo-author-link {
    color: inherit;
    text-decoration: none;
}


.photo-author {
    font-weight: 500;
    color: #666;
}

.photo-date {
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: #999;
    margin: 0 0 24px 0;
}

.empty-action {
    display: inline-block;
    padding: 12px 24px;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.empty-action:hover {
    background: #1a252f;
}

@media (max-width: 768px) {
    .home-container {
        padding: 24px 16px;
    }

    .hero-card {
        height: 320px;
    }
    
    .home-title {
        font-size: 26px;
    }
    
    .home-subtitle {
        font-size: 14px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .photo-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
}

.detail-photo-section {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.detail-image-wrapper {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

.photo-stage-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.photo-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1f2937;
}

.photo-chip.primary {
    background: #111827;
    color: #ffffff;
    border-color: #0b1220;
}

.photo-chip.subtle {
    background: #f3f4f6;
    color: #1f2937;
}

.photo-chip.muted {
    background: #f8f9fb;
    color: #4b5563;
}

.photo-stage {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #0b1220;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    position: relative;
}

.photo-stage img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    pointer-events: none;
    transform: translate(-9999px, -9999px);
    opacity: 0;
    transition: opacity 0.15s ease;
    backdrop-filter: brightness(1.05);
    z-index: 2;
}

.photo-zoom-lens::before,
.photo-zoom-lens::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
}

.photo-zoom-lens::before {
    width: 80%;
    height: 1px;
}

.photo-zoom-lens::after {
    width: 1px;
    height: 80%;
}

.photo-zoom-lens.active {
    opacity: 1;
}

.photo-viewfinder {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 180px;
    height: 180px;
    border-radius: 14px;
    border: 2px solid #38bdf8;
    background: #0b1220 center center / 200% 200% no-repeat;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 3;
}

.photo-viewfinder::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.photo-viewfinder.active {
    opacity: 1;
}

.photo-stage-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-stage-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.photo-stage-meta {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

.photo-stage-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.meta-pill.compact {
    padding: 6px 10px;
    font-size: 12px;
}


.detail-info-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-headings {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    background: #f2f4f7;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.like-pill {
    background: #f0f7ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.view-pill {
    background: #f0f7ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.meta-icon {
    font-size: 14px;
}

.like-form {
    margin: 0;
}

.btn-like-toggle {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    background: #2c3e50;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-like-toggle:hover {
    background: #1a252f;
}

.btn-like-toggle.liked {
    background: #1a73e8;
}

.like-login {
    font-size: 13px;
    color: #555;
}

.like-login a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.like-login a:hover {
    text-decoration: underline;
}

a.detail-author {
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.15s ease;
}

a.detail-author:hover {
    color: #1a252f;
    text-decoration: underline;
}

.detail-date {
    color: #999;
}

.detail-meta::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
}

.detail-meta .detail-date::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
    margin-right: 12px;
}

.detail-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.detail-description p {
    margin: 0;
}

.detail-specs {
    background: #fafafa;
    padding: 24px;
    border-radius: 8px;
}

.specs-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.specs-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.specs-note {
    font-size: 12px;
    color: #4b5563;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.specs-grid {
    display: grid;
    gap: 12px;
}

.spec-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 8px 0;
}

.spec-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 14px;
    color: #1a1a1a;
}

.detail-comments {
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.comment-form {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form textarea {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.comment-form textarea::placeholder {
    color: #aaa;
}

.btn-comment {
    align-self: flex-end;
    padding: 10px 24px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-comment:hover {
    background: #1a252f;
}

.comment-login {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 32px;
}

.comment-login p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.comment-login a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}

.comment-login a:hover {
    text-decoration: underline;
}

/* ===== REDESIGNED COMMENT THREAD SYSTEM ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    position: relative;
    padding-left: 0;
}

/* Depth-based indentation - caps at depth 3 to prevent squishing */
.comment-item.depth-0 { margin-left: 0; }
.comment-item.depth-1 { margin-left: 24px; }
.comment-item.depth-2 { margin-left: 48px; }
.comment-item.depth-3 { margin-left: 64px; }

/* Thread connector line */
.comment-thread-line {
    display: none;
}

.comment-item.depth-1 .comment-thread-line,
.comment-item.depth-2 .comment-thread-line,
.comment-item.depth-3 .comment-thread-line {
    display: block;
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0 0%, #e2e8f0 100%);
    border-radius: 2px;
}

/* Main comment container */
.comment-main {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.comment-main:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Reply styling - slightly different appearance */
.comment-item.depth-1 .comment-main,
.comment-item.depth-2 .comment-main,
.comment-item.depth-3 .comment-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
}

.comment-item.depth-1 .comment-main:hover,
.comment-item.depth-2 .comment-main:hover,
.comment-item.depth-3 .comment-main:hover {
    background: #fafafa;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Smaller avatars for replies */
.comment-item.depth-1 .avatar-img,
.comment-item.depth-2 .avatar-img,
.comment-item.depth-3 .avatar-img {
    width: 36px;
    height: 36px;
}

.avatar-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.comment-item.depth-1 .avatar-placeholder,
.comment-item.depth-2 .avatar-placeholder,
.comment-item.depth-3 .avatar-placeholder {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-reply {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-reply:hover {
    color: #1e293b;
    background: #e2e8f0;
}

.btn-reply svg {
    opacity: 0.7;
}

.btn-reply:hover svg {
    opacity: 1;
}

/* Replies container */
.comment-replies {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badges */
.comment-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comment-badge.badge-photographer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
}

.comment-badge.badge-staff {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.staff-badge-logo {
    height: 9px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Mobile responsiveness for comments */
@media (max-width: 640px) {
    .comment-item.depth-1,
    .comment-item.depth-2,
    .comment-item.depth-3 {
        margin-left: 16px;
    }

    .comment-main {
        padding: 12px 14px;
        gap: 10px;
    }

    .avatar-img,
    .avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .comment-item.depth-1 .avatar-img,
    .comment-item.depth-2 .avatar-img,
    .comment-item.depth-3 .avatar-img,
    .comment-item.depth-1 .avatar-placeholder,
    .comment-item.depth-2 .avatar-placeholder,
    .comment-item.depth-3 .avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .comment-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .comment-thread-line {
        left: -8px;
    }
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.comments-empty p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 968px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .detail-photo-section {
        position: static;
    }

    .detail-actions {
        justify-content: flex-start;
    }

    .photo-viewfinder,
    .photo-zoom-lens {
        display: none;
    }
    
    .spec-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 24px 16px;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-specs {
        padding: 16px;
    }
}

/* Admin Mode Toggle & Features */
.admin-mode-toggle-container {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 999;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.admin-mode-toggle-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-mode-toggle-track {
    width: 36px;
    height: 20px;
    background: #475569;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.admin-mode-toggle-input:checked + .admin-mode-toggle-track {
    background: #10b981;
}

.admin-mode-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-mode-toggle-input:checked + .admin-mode-toggle-track .admin-mode-toggle-thumb {
    transform: translateX(16px);
}

.admin-mode-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.02em;
}

/* Admin Pill on Photos */
.admin-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: none;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.admin-pill svg {
    flex-shrink: 0;
}

.admin-pill:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-4px) scale(1.02);
}

.admin-pill:active {
    transform: translateY(-2px) scale(0.98);
}

/* Show pill when admin mode is active */
body.admin-mode-active .admin-pill {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Visual indicator for hidden photos */
.photo-card.admin-hidden-photo .photo-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(239, 68, 68, 0.1) 10px,
        rgba(239, 68, 68, 0.1) 20px
    );
    pointer-events: none;
}

/* Admin Modal Overlay */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Admin Modal */
.admin-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-modal-overlay.visible .admin-modal {
    transform: translateX(0);
    opacity: 1;
}

.admin-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.admin-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.admin-modal-content {
    padding: 20px;
}

.admin-modal-loading,
.admin-modal-error {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.admin-modal-error {
    color: #ef4444;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.admin-modal-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.admin-modal-status.visible {
    background: #dcfce7;
    color: #166534;
}

.admin-modal-status.hidden {
    background: #fee2e2;
    color: #991b1b;
}

.admin-modal-section {
    margin-bottom: 20px;
}

.admin-modal-section h4 {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.admin-modal-details {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
}

.admin-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.admin-detail-row:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.admin-detail-label {
    color: #64748b;
    font-weight: 500;
}

.admin-detail-value {
    color: #0f172a;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.admin-modal-uploader {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.admin-uploader-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
}

.admin-uploader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-uploader-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #64748b;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.admin-uploader-info {
    flex: 1;
    min-width: 0;
}

.admin-uploader-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.admin-uploader-username {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.admin-uploader-email {
    font-size: 12px;
    color: #3b82f6;
    word-break: break-all;
    margin-bottom: 6px;
}

.admin-uploader-meta {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.admin-link-btn {
    display: inline-block;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.admin-link-btn:hover {
    text-decoration: underline;
}

.admin-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.admin-action-btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.admin-action-btn:active {
    transform: scale(0.98);
}

.admin-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-action-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-action-warning:hover:not(:disabled) {
    background: #fde68a;
}

.admin-action-success {
    background: #d1fae5;
    color: #065f46;
}

.admin-action-success:hover:not(:disabled) {
    background: #a7f3d0;
}

.admin-action-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-action-danger:hover:not(:disabled) {
    background: #fecaca;
}

.admin-action-neutral {
    background: #f1f5f9;
    color: #334155;
}

.admin-action-neutral:hover:not(:disabled) {
    background: #e2e8f0;
}

@media (max-width: 600px) {
    .admin-mode-toggle-container {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .admin-modal-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }
    
    .admin-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(20px);
    }
    
    .admin-modal-overlay.visible .admin-modal {
        transform: translateY(0);
    }
}

/* =============================================================================
   MOBILE UI REDESIGN - Airframe Aviation Photography Platform
   Target: Mobile devices only (phones first, tablets second)
   Desktop remains completely unchanged
   ============================================================================= */

/* ================================================
   MOBILE BOTTOM NAVIGATION BAR
   Fixed, always visible, thumb-friendly
   ================================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding: 6px 0 4px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: flex-end;
        box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.03);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 12px;
        color: #1f2937;
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.15s ease;
        min-width: 56px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item svg {
        width: 22px;
        height: 22px;
        stroke-width: 1.75;
        stroke: #1f2937;
    }
    
    .mobile-nav-item:active {
        transform: scale(0.95);
    }
    
    .mobile-nav-item.active {
        color: #000000;
        font-weight: 600;
    }
    
    .mobile-nav-item.active svg {
        stroke-width: 2.25;
        stroke: #000000;
    }
    
    /* Upload button - consistent with other nav items */
    .mobile-nav-upload {
        position: relative;
    }
    
    .mobile-nav-upload svg {
        width: 22px;
        height: 22px;
        stroke: #1f2937;
        stroke-width: 1.75;
        background: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
    }
    
    .mobile-nav-upload.active svg,
    .mobile-nav-upload:hover svg {
        stroke: #000000;
        stroke-width: 2.25;
    }
    
    .mobile-nav-upload:active svg {
        transform: none;
        box-shadow: none;
    }
    
    .mobile-nav-upload span {
        margin-top: 0;
    }
    
    /* Profile avatar in nav */
    .mobile-nav-avatar {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        transition: border-color 0.15s ease;
    }
    
    .mobile-nav-item.active .mobile-nav-avatar {
        border-color: #000000;
    }
    
    .mobile-nav-avatar-placeholder {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.08);
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
        color: #1f2937;
        transition: all 0.15s ease;
    }
    
    .mobile-nav-item.active .mobile-nav-avatar-placeholder {
        border-color: #000000;
        background: #000000;
        color: white;
    }
}

/* ================================================
   MOBILE BODY & MAIN LAYOUT ADJUSTMENTS
   Account for bottom navigation safe area
   ================================================ */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(52px + env(safe-area-inset-bottom));
    }
    
    main {
        padding: 12px;
        padding-bottom: 24px;
    }
    
    /* Hide footer on mobile - bottom nav replaces it */
    .site-footer {
        display: none;
    }
}

/* ================================================
   MOBILE SEARCH PAGE
   ================================================ */
.mobile-search-form {
    display: none;
}

@media (max-width: 768px) {
    .mobile-search-form {
        display: block;
        margin-top: 20px;
        width: 100%;
    }
    
    .mobile-search-wrapper {
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    
    .mobile-search-wrapper:focus-within {
        border-color: #111827;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .mobile-search-input {
        flex: 1;
        border: none;
        padding: 14px 16px;
        font-size: 16px;
        background: transparent;
        outline: none;
        color: #111827;
    }
    
    .mobile-search-input::placeholder {
        color: #9ca3af;
    }
    
    .mobile-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: #111827;
        border: none;
        cursor: pointer;
        transition: background 0.15s ease;
    }
    
    .mobile-search-btn:active {
        background: #000000;
    }
    
    .mobile-search-btn svg {
        width: 20px;
        height: 20px;
        stroke: #ffffff;
    }
}

/* ================================================
   MOBILE HEADER - Compact, minimal
   ================================================ */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .navbar {
        padding: 10px 16px;
        min-height: auto;
    }
    
    .navbar-logo {
        height: 36px;
        gap: 8px;
    }
    
    .navbar-logo-img {
        height: 32px;
        width: 32px;
    }
    
    .navbar-brand-text {
        display: none;
    }
}

/* ================================================
   MOBILE HOME PAGE & FEED
   Optimized for portrait viewing, fast scanning
   ================================================ */
@media (max-width: 768px) {
    .home-container,
    .liked-container {
        padding: 16px 12px;
        max-width: 100%;
    }
    
    /* Compact header */
    .home-header,
    .liked-header {
        text-align: left;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .home-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: -0.02em;
    }
    
    .home-subtitle {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.4;
    }
    
    /* Hide admin mode toggle on mobile */
    .admin-mode-toggle-container {
        display: none !important;
    }
    
    /* Hero card - Featured photo */
    .hero-card-wrapper {
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-card {
        height: 280px;
        border-radius: 16px;
        overflow: hidden;
    }
    
    .hero-overlay {
        padding: 16px;
        background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    }
    
    .hero-meta {
        gap: 6px;
    }
    
    .hero-author {
        font-size: 12px;
        letter-spacing: 0.3px;
    }
    
    .hero-title {
        font-size: 20px;
        font-weight: 700;
    }
    
    .hero-aircraft {
        font-size: 13px;
        gap: 6px;
    }
    
    .hero-registration {
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .hero-stats {
        gap: 8px;
        font-size: 12px;
        margin-top: 8px;
    }
    
    .hero-stats span {
        padding: 5px 8px;
        gap: 4px;
    }
    
    .hero-admin-pill {
        top: 12px;
        right: 12px;
    }
    
    /* Photo Grid - Single column, full width cards */
    .photo-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    /* Photo Cards - Lightweight, fast, touch-optimized */
    .photo-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        background: #ffffff;
        margin: 0;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }
    
    .photo-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }
    
    .photo-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        position: relative;
    }
    
    .photo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Aircraft info chip on image */
    .photo-chip {
        position: absolute;
        top: 10px;
        left: 10px;
        right: auto;
        padding: 6px 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.95);
        color: #1f2937;
        font-size: 12px;
        font-weight: 600;
        backdrop-filter: blur(8px);
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        max-width: calc(100% - 80px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .photo-chip-divider {
        opacity: 0.4;
        margin: 0 4px;
    }
    
    .photo-chip .photo-registration {
        background: #f3f4f6;
        color: #374151;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 11px;
        margin-left: 4px;
        border: none;
    }
    
    /* Photo info section - compact metadata */
    .photo-info {
        padding: 12px 14px;
        background: #ffffff;
    }
    
    .photo-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .photo-author {
        font-weight: 600;
        color: #111827;
        font-size: 13px;
    }
    
    .photo-date {
        color: #9ca3af;
        font-size: 11px;
    }
    
    .photo-likes,
    .photo-views,
    .photo-comments {
        font-size: 12px;
        color: #6b7280;
    }
    
    /* Admin pill positioning */
    .admin-pill {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
        font-size: 10px;
    }
    
    /* Infinite scroll sentinel */
    .infinite-scroll-sentinel {
        padding: 24px 16px;
        font-size: 13px;
        color: #9ca3af;
    }
    
    /* Empty state */
    .empty-state {
        padding: 48px 20px;
    }
    
    .empty-state svg {
        width: 48px;
        height: 48px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    .empty-action {
        padding: 14px 28px;
        font-size: 15px;
        border-radius: 12px;
    }
}

/* ================================================
   MOBILE PHOTO DETAIL PAGE
   Stacked layout, optimized viewing
   ================================================ */
@media (max-width: 768px) {
    .detail-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        max-width: 100%;
    }
    
    .detail-photo-section {
        position: relative;
        width: 100%;
    }
    
    .photo-stage-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 0;
        gap: 0;
        background: #000;
    }
    
    .photo-stage {
        border-radius: 0;
        border: none;
    }
    
    .photo-stage img {
        width: 100%;
        height: auto;
    }
    
    .photo-stage-top,
    .photo-stage-bottom {
        padding: 12px 16px;
        background: #ffffff;
    }
    
    .photo-stage-top {
        padding-top: 14px;
    }
    
    .photo-chip-group {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .photo-chip {
        position: relative;
        top: auto;
        left: auto;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .photo-stage-title {
        font-size: 16px;
    }
    
    .photo-stage-meta {
        font-size: 12px;
    }
    
    /* Detail info section */
    .detail-info-section {
        padding: 0 16px;
        gap: 20px;
    }
    
    .detail-header {
        padding-bottom: 16px;
    }
    
    .detail-title-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .detail-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    .detail-actions {
        width: 100%;
    }
    
    .detail-stats {
        width: 100%;
        justify-content: flex-start;
    }
    
    .meta-pill {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .meta-pill.compact {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Specs section */
    .detail-specs {
        padding: 16px;
        border-radius: 12px;
        margin: 0;
    }
    
    .specs-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .spec-item {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }
    
    .spec-label {
        font-size: 11px;
    }
    
    .spec-value {
        font-size: 14px;
    }
    
    /* Comments section */
    .detail-comments {
        padding: 16px;
        border-top: 1px solid #f3f4f6;
    }
    
    .comments-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .comment-form textarea {
        min-height: 72px;
        font-size: 15px;
        border-radius: 12px;
        padding: 14px;
    }
    
    .btn-comment {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    /* Like button touch target */
    .btn-like-toggle {
        padding: 12px 18px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 10px;
    }
}

/* ================================================
   MOBILE PROFILE PAGE
   ================================================ */
@media (max-width: 768px) {
    .profile-container {
        padding: 16px 12px 32px;
    }
    
    .profile-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
        border-radius: 16px;
        gap: 16px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
    
    .profile-avatar-fallback {
        font-size: 32px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .profile-handle {
        font-size: 13px;
    }
    
    .profile-summary {
        align-items: center;
    }
    
    .profile-header-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .profile-identity {
        align-items: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    /* Settings button on own profile */
    .profile-settings-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        color: #f9fafb;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        margin-top: 12px;
        transition: all 0.15s ease;
    }
    
    .profile-settings-btn:active {
        background: rgba(255, 255, 255, 0.25);
    }
    
    .profile-settings-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-chip {
        padding: 10px 12px;
        border-radius: 10px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .profile-gallery {
        margin-top: 24px;
        gap: 12px;
    }
    
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .section-heading h2 {
        font-size: 18px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ================================================
   MOBILE UPLOAD PAGE
   ================================================ */
@media (max-width: 768px) {
    .upload-container {
        padding: 16px 12px;
        margin: 0;
        max-width: 100%;
    }
    
    .upload-card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .upload-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .progress-steps {
        margin-bottom: 24px;
        padding: 0;
        gap: 4px;
    }
    
    .step {
        gap: 6px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 9px;
    }
    
    .step-line {
        margin: 0 2px;
        margin-bottom: 22px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .file-upload-area {
        padding: 32px 16px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .file-upload-area svg {
        width: 40px;
        height: 40px;
    }
    
    .upload-text {
        font-size: 15px;
    }
    
    .upload-hint {
        font-size: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevent iOS zoom */
        border-radius: 10px;
    }
    
    .button-group {
        margin-top: 20px;
        gap: 10px;
    }
    
    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        min-height: 48px;
    }
    
    /* AI detection card */
    .ai-detect-card {
        padding: 14px;
        border-radius: 12px;
    }
    
    .ai-detect-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ai-detect-item {
        padding: 10px;
    }
    
    .ai-detect-label {
        font-size: 11px;
    }
    
    .ai-detect-value {
        font-size: 14px;
    }
}

/* ================================================
   MOBILE AUTH PAGE
   ================================================ */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 16px;
        max-width: 100%;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .auth-button {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 10px;
    }
}

/* ================================================
   MOBILE SETTINGS PAGE
   ================================================ */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px 12px;
        max-width: 100%;
    }
    
    .settings-card {
        padding: 16px;
        border-radius: 14px;
    }
    
    .settings-section-title {
        font-size: 16px;
    }
}

/* ================================================
   MOBILE ABOUT & LEGAL PAGES
   ================================================ */
@media (max-width: 768px) {
    .about-page,
    .legal-page {
        padding: 0 16px;
        margin: 16px auto 40px;
    }
    
    .about-hero h1,
    .legal-hero h1 {
        font-size: 26px;
    }
    
    .lede {
        font-size: 15px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about-card {
        padding: 16px;
    }
    
    .about-metrics {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
        gap: 12px;
    }
    
    .metric-value {
        font-size: 18px;
    }
    
    .about-secondary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .about-button {
        width: 100%;
        text-align: center;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
}

/* ================================================
   MOBILE UTILITY CLASSES
   ================================================ */
@media (max-width: 768px) {
    /* Status pages */
    .status-container {
        padding: 16px 12px;
        margin: 0;
    }
    
    .status-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    
    .status-title {
        font-size: 22px;
    }
    
    .status-actions {
        flex-direction: column;
    }
    
    .status-actions .btn-primary,
    .status-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Buttons - larger touch targets */
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        min-height: 44px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    /* Admin toggle repositioning */
    .admin-mode-toggle-container {
        bottom: calc(56px + env(safe-area-inset-bottom));
        right: 12px;
        padding: 6px 12px;
    }
    
    .admin-mode-toggle-label {
        font-size: 11px;
    }
    
    /* Admin modal */
    .admin-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .admin-modal {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
    }
}

/* ================================================
   MOBILE DARK MODE SUPPORT
   ================================================ */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: rgba(17, 24, 39, 0.78);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
    
    .mobile-nav-item {
        color: #9ca3af;
    }
    
    .mobile-nav-item svg {
        stroke: #9ca3af;
    }
    
    .mobile-nav-item.active {
        color: #f9fafb;
    }
    
    .mobile-nav-item.active svg {
        stroke: #f9fafb;
    }
    
    .mobile-nav-upload svg {
        background: none;
        stroke: #9ca3af;
    }
    
    .mobile-nav-upload.active svg {
        stroke: #f9fafb;
    }
    
    .mobile-nav-avatar-placeholder {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        color: #d1d5db;
    }
    
    .mobile-nav-item.active .mobile-nav-avatar-placeholder {
        background: #f9fafb;
        border-color: #f9fafb;
        color: #111827;
    }
}

/* ================================================
   MOBILE SCROLL ENHANCEMENTS
   ================================================ */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide scrollbars on mobile for cleaner look */
    body::-webkit-scrollbar {
        display: none;
    }
    
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Prevent horizontal overflow */
    body,
    main,
    .home-container,
    .detail-container {
        overflow-x: hidden;
    }
}

/* ================================================
   MOBILE TABLET BREAKPOINT (641px - 768px)
   Slightly adjusted for larger mobile devices
   ================================================ */
@media (min-width: 641px) and (max-width: 768px) {
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .photo-image {
        aspect-ratio: 4 / 3;
    }
    
    .hero-card {
        height: 340px;
        border-radius: 16px;
    }
    
    .hero-card-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    
    .profile-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*
      /\
     /  \       Airframe, an aircraft photography platform
    /    \      Zak
   /  \/  \     Morris
  /   /\   \
 /___/  \___\
*/
