@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Jasna, świeża paleta - "Ethereal Tech" */
    --bg-page: #F3F4F6; /* Bardzo jasny szary */
    --bg-card: #FFFFFF;
    
    /* Akcenty - Indigo + Vivid Purple (zamiast pomarańczu) */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-soft: rgba(79, 70, 229, 0.08);
    
    --accent-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    
    /* Teksty */
    --text-main: #111827; /* Prawie czarny */
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --border: #E5E7EB;
    --border-hover: #D1D5DB;

    /* Cienie - klucz do "Soft" wyglądu */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 12px;
    
    --transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Subtelny wzór w tle */
    background-image: radial-gradient(#E5E7EB 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Układ główny */
.shell {
    width: 100%;
    max-width: 1600px; /* Szeroki content */
    margin: 0 auto;
    padding: 30px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100vh; /* Staramy się zmieścić w viewport */
    max-height: 100vh;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
}

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

.brand h1 {
    font-family: "Space Grotesk", sans-serif; /* Bardziej techniczny font do nagłówków */
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.brand h1 span { color: var(--primary); }

.brand-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 15px;
    border-left: 2px solid var(--border);
    display: block;
}

.server-status {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.server-status::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* MAIN CONTENT - BENTO GRID STYLE */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Podział szeroki */
    gap: 30px;
    min-height: 0; /* Ważne dla scrolla wewnętrznego */
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid #FFFFFF;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    transition: transform 0.3s ease;
}

/* Prawa kolumna (Upload) jako główny "Hero" */
.upload-card {
    grid-column: 1 / 2;
    background: #FFFFFF;
}

/* Lewa kolumna (Info) */
.info-card {
    grid-column: 2 / 3;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    justify-content: center;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

/* DROP ZONE - Nowoczesny, czysty */
.drop-zone {
    flex: 1;
    border: 3px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #F9FAFB;
    transition: var(--transition);
    cursor: pointer;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: scale(1.005);
}

.drop-zone.dragover {
    border-color: var(--primary);
    background: #EEF2FF;
    transform: scale(1.01);
}

.drop-icon {
    font-size: 56px;
    margin-bottom: 20px;
    color: var(--primary);
    background: #E0E7FF;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.drop-zone:hover .drop-icon {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    background: #ffffff;
}

.drop-zone strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.drop-zone span {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* FILE META & ACTIONS */
.file-meta {
    background: #F3F4F6;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.file-meta strong { color: var(--primary); }

.actions {
    display: flex;
    gap: 16px;
    margin-top: auto; /* Pycha na dół jeśli jest miejsce */
}

button {
    padding: 18px 30px;
    border-radius: var(--radius-lg);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    flex: 2;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-muted);
    border: 2px solid var(--border);
    flex: 1;
    font-weight: 600;
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--text-muted);
    color: var(--text-main);
    background: #F9FAFB;
}

button:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* PROGRESS */
.progress {
    height: 10px;
    background: #E5E7EB;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-bar {
    height: 100%; width: 0;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

/* INFO LIST (RIGHT COLUMN) */
.info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.info-icon {
    width: 40px; height: 40px;
    background: #EEF2FF;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-main);
}
.info-text { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* SEO CONTENT */
.seo-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--border);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* LINK BOX */
.link-box {
    background: #ECFDF5;
    border: 1px solid #10B981;
    padding: 10px;
    border-radius: var(--radius-md);
    display: none;
    gap: 10px;
    margin-top: 10px;
}
.link-box.visible { display: flex; }
.link-box input {
    border: none; background: transparent;
    color: #059669; font-weight: 700; width: 100%; outline: none;
}

.status { margin-top: 10px; text-align: center; font-weight: 600; min-height: 24px; }
.status.success { color: #059669; }
.status.error { color: #DC2626; }

/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 10px;
    flex-shrink: 0;
}
.heart { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .shell { height: auto; padding: 20px; }
    main { grid-template-columns: 1fr; }
    .upload-card { grid-column: 1 / -1; min-height: 500px; }
    .info-card { grid-column: 1 / -1; }
    .drop-zone { min-height: 200px; }
}
