/* ============================================== */
/* Farghar CodeDNA v5.9.9 - landing.css          */
/* Styles for landing page, drop zone, skeleton  */
/* Added URL/Source/File mode switch styles      */
/* Copyright (c) 2025 Farghar. All rights reserved. */
/* Architect & Developer: Farghar                */
/* ============================================== */

.farghar-skeleton-tab, .farghar-skeleton-line { background: linear-gradient(90deg, var(--farghar-surface2) 25%, var(--farghar-surface3) 50%, var(--farghar-surface2) 75%); background-size: 200% 100%; animation: farghar-skeleton-shimmer 1.5s ease-in-out infinite; }
@keyframes farghar-skeleton-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.farghar-drop-zone { position: relative; border: 2px dashed rgba(255,255,255,0.06); border-radius: var(--farghar-radius-sm); padding: clamp(20px, 4vw, 40px); text-align: center; transition: var(--farghar-transition); cursor: default; margin-bottom: 12px; }
.farghar-drop-zone.drag-over { border-color: var(--farghar-accent); background: rgba(108,92,231,0.06); }
.farghar-drop-zone .farghar-drop-icon { display: block; margin-bottom: 8px; opacity: 0.4; }
.farghar-drop-zone .farghar-drop-text { font-size: clamp(0.8rem, 1.5vw, 1rem); color: var(--farghar-text2); }
.farghar-drop-zone .farghar-drop-text strong { color: var(--farghar-accent2); }

#landingPage { width: 100%; min-height: 100vh; margin: 0; padding: 0; display: flex; flex-direction: column; box-sizing: border-box; }
#resultsPage { display: none; }

.cdna-landing-header { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; box-sizing: border-box; }
.cdna-landing-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cdna-landing-brand-icon { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--farghar-accent), #8b7cf0); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(108,92,231,0.2); }
.cdna-landing-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.cdna-landing-brand-text { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.cdna-landing-brand-title { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; letter-spacing: -0.3px; color: var(--farghar-text); white-space: nowrap; }
.cdna-landing-version { display: inline-block; font-size: clamp(0.5rem, 1vw, 0.6rem); font-weight: 600; color: var(--farghar-accent2); background: var(--farghar-accent-glow); padding: 2px 8px; border-radius: 12px; border: 1px solid var(--farghar-accent); white-space: nowrap; }
.cdna-landing-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cdna-landing-actions button { display: inline-flex; align-items: center; gap: 4px; background: var(--farghar-surface2); border: 1px solid var(--farghar-surface3); border-radius: 50px; padding: clamp(4px, 0.8vw, 6px) clamp(10px, 1.5vw, 14px); color: var(--farghar-text); font-size: clamp(0.6rem, 1.2vw, 0.7rem); font-weight: 600; cursor: pointer; transition: var(--farghar-transition); font-family: var(--farghar-font); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); appearance: none; -webkit-appearance: none; }
.cdna-landing-actions button:hover { background: var(--farghar-surface3); border-color: var(--farghar-accent); }
.cdna-landing-actions button:focus-visible { outline: 2px solid var(--farghar-accent); outline-offset: 2px; }
.cdna-landing-actions button svg { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }

.cdna-landing-main { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px; margin: 0; box-sizing: border-box; }
.cdna-logo-text { font-size: clamp(3rem, 8vw, 5rem); font-weight: bold; letter-spacing: 1px; display: flex; align-items: center; }
.cdna-logo-text span:nth-child(1) { color: #4285F4; }
.cdna-logo-text span:nth-child(2) { color: #EA4335; }
.cdna-logo-text span:nth-child(3) { color: #FBBC05; }
.cdna-logo-text span:nth-child(4) { color: #4285F4; }
.cdna-logo-text span:nth-child(5) { color: #34A853; }
.cdna-logo-text span:nth-child(6) { color: #EA4335; }
.cdna-logo-text span:nth-child(7) { color: #FBBC05; }
.cdna-landing-subtitle { margin-top: 8px; font-size: clamp(0.9rem, 2vw, 1.1rem); color: var(--farghar-text2); text-align: center; }

.cdna-search-container { width: 100%; max-width: 584px; margin: 30px auto; }
.cdna-search-box { display: flex; align-items: center; background: var(--farghar-surface2); border: 1px solid transparent; border-radius: 24px; padding: 0 15px; height: 46px; transition: 0.2s; }
.cdna-search-box:hover, .cdna-search-box:focus-within { background: var(--farghar-surface3); box-shadow: 0 1px 6px rgba(0,0,0,0.28); border-color: var(--farghar-surface3); }
.cdna-search-icon { color: var(--farghar-text3); margin-right: 12px; display: flex; align-items: center; }
.cdna-search-input { flex: 1; background: transparent; border: none; outline: none; color: var(--farghar-text); font-size: 16px; }
.cdna-search-input::placeholder { color: var(--farghar-text3); }

.cdna-landing-buttons { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
.cdna-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--farghar-surface3); color: var(--farghar-text); border: 1px solid transparent; border-radius: 4px; padding: 10px 20px; font-size: 14px; cursor: pointer; transition: 0.2s; }
.cdna-btn:hover { border-color: var(--farghar-surface3); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.cdna-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.cdna-trust-badges { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.cdna-trust-item { display: flex; align-items: center; gap: 6px; color: var(--farghar-text2); font-size: 0.75rem; }
.cdna-landing-about-btn { background: none; border: none; color: var(--farghar-accent2); font-size: 0.8rem; cursor: pointer; padding: 0; text-decoration: underline; }
.cdna-landing-about-btn:hover { color: var(--farghar-text); }
.cdna-landing-kg-panel { display: none; margin-top: 10px; }

.cdna-landing-footer { width: 100%; background: var(--farghar-surface); padding: 15px 30px; font-size: 0.8rem; color: var(--farghar-text2); box-sizing: border-box; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cdna-landing-footer a { color: var(--farghar-accent2); text-decoration: none; }
.cdna-landing-footer a:hover { text-decoration: underline; }

.cdna-mode-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.cdna-mode-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--farghar-surface2); border: 1px solid var(--farghar-surface3); border-radius: 50px; padding: clamp(4px, 0.8vw, 6px) clamp(12px, 2vw, 18px); color: var(--farghar-text2); font-size: clamp(0.65rem, 1.2vw, 0.75rem); font-weight: 600; cursor: pointer; transition: var(--farghar-transition); font-family: var(--farghar-font); appearance: none; -webkit-appearance: none; }
.cdna-mode-btn:hover { background: var(--farghar-surface3); border-color: var(--farghar-accent); color: var(--farghar-text); }
.cdna-mode-btn.active { background: var(--farghar-accent-glow); border-color: var(--farghar-accent); color: var(--farghar-accent2); box-shadow: 0 0 20px rgba(108,92,231,0.1); }

.cdna-mode-description { margin: 0 0 12px 0; text-align: center; color: var(--farghar-text3); font-size: clamp(0.7rem, 1.3vw, 0.78rem); line-height: 1.6; }

.cdna-source-box { display: flex; background: var(--farghar-surface2); border: 1px solid transparent; border-radius: 24px; padding: 15px; transition: 0.2s; min-height: 160px; }
.cdna-source-box:hover, .cdna-source-box:focus-within { background: var(--farghar-surface3); box-shadow: 0 1px 6px rgba(0,0,0,0.28); border-color: var(--farghar-surface3); }
.cdna-source-input { width: 100%; background: transparent; border: none; outline: none; color: var(--farghar-text); font-family: 'SF Mono','Consolas',monospace; font-size: 14px; resize: vertical; min-height: 140px; line-height: 1.6; }
.cdna-source-input::placeholder { color: var(--farghar-text3); }

.cdna-file-box { display: flex; align-items: center; justify-content: center; background: var(--farghar-surface2); border: 1px solid transparent; border-radius: 24px; padding: 20px; transition: 0.2s; min-height: 160px; }
.cdna-file-box:hover, .cdna-file-box:focus-within { background: var(--farghar-surface3); box-shadow: 0 1px 6px rgba(0,0,0,0.28); border-color: var(--farghar-surface3); }
.cdna-file-drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 120px; border: 2px dashed rgba(255,255,255,0.06); border-radius: var(--farghar-radius-sm); transition: var(--farghar-transition); }
.cdna-file-drop-zone.drag-over { border-color: var(--farghar-accent); background: rgba(108,92,231,0.06); }
.cdna-file-drop-icon { display: flex; opacity: 0.4; }
.cdna-file-drop-text { font-size: clamp(0.75rem, 1.4vw, 0.85rem); color: var(--farghar-text2); }

.cdna-input-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cdna-input-actions-left { display: flex; gap: 12px; flex-wrap: wrap; }
.cdna-action-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--farghar-accent-glow); border-radius: 20px; padding: 8px 16px; color: var(--farghar-accent2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s ease; font-family: var(--farghar-font); }
.cdna-action-btn:hover { background: rgba(108,92,231,0.12); }
.cdna-action-btn svg { flex-shrink: 0; }
.cdna-input-actions-right { display: flex; align-items: center; gap: 16px; }
.cdna-attach-btn { background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--farghar-text3); transition: color 0.2s; padding: 4px; }
.cdna-attach-btn:hover { color: var(--farghar-text); }
.cdna-send-btn { background-color: var(--farghar-accent); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease; opacity: 1; }
.cdna-send-btn:hover { background-color: #7d6ff0; }
.cdna-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cdna-send-btn svg { display: block; }

[hidden] { display: none !important; }

@media (max-width: 600px) { .cdna-landing-header { padding: 12px 16px; } .cdna-landing-actions { gap: 6px; } .cdna-logo-text { font-size: 2.5rem; } .cdna-mode-switch { gap: 4px; } .cdna-mode-btn { padding: 4px 10px; font-size: 0.7rem; } .cdna-input-actions { flex-direction: column; align-items: stretch; } .cdna-input-actions-left, .cdna-input-actions-right { justify-content: center; } }
