/* Home Page - LinkedIn Helper Tool - Dark-Style */

/* Mobile-First: Basis-Styles gelten für mobile Geräte */

.home-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Matrix Container Styles - Dark-Style */
.matrix-container {
    background: var(--color-background-surface);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.matrix-title {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles - Dark-Style */
.matrix-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.matrix-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.matrix-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-background-light);
    color: var(--color-text-primary);
}

.matrix-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.2);
    background-color: var(--color-background);
}

.matrix-input:hover {
    border-color: var(--color-border-light);
}

/* Upload Area Styles - Dark-Style */
.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-area {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--color-background-light);
    color: var(--color-text-secondary);
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: var(--color-background-surface);
}

/* Button Styles - Dark-Style */
.matrix-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

.matrix-button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 160, 220, 0.4);
}

.matrix-button:active {
    transform: translateY(0);
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.submit-button {
    min-width: 200px;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.error-message {
    background-color: var(--color-message-error-bg);
    color: var(--color-message-error-text);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--color-message-error-border);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    word-wrap: break-word;
}

.stats-message {
    background-color: var(--color-message-success-bg);
    color: var(--color-message-success-text);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--color-message-success-border);
}

.help-text {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.file-name {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

/* Status Container and Progress Tracking - Dark-Style */
.status-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-accent-neon-1) 0%, var(--color-accent-neon-2) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(158, 122, 255, 0.3);
}

.status-header {
    margin-bottom: 1rem;
}

.status-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.status-log {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

.log-entry {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    word-wrap: break-word;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.log-entry:last-child {
    margin-bottom: 0;
    animation: slideIn 0.3s ease-out;
}

.log-timestamp {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    min-width: 80px;
}

.log-message {
    flex: 1;
    line-height: 1.4;
}

.log-info {
    color: #e0e7ff;
    border-left-color: #3b82f6;
}

.log-success {
    color: #bbf7d0;
    border-left-color: #10b981;
}

.log-error {
    color: #fecaca;
    border-left-color: #ef4444;
}

.log-warning {
    color: #fed7aa;
    border-left-color: var(--color-warning);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Configuration Container Styles - Dark-Style */
.config-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-background-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.config-title {
    margin: 0 0 1rem 0;
    color: var(--color-text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.config-table-wrapper {
    background: var(--color-background-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.status-success {
    color: #10b981;
    font-weight: 600;
}

.status-warning {
    color: var(--color-warning);
    font-weight: 600;
}

.status-error {
    color: #ef4444;
    font-weight: 600;
}

.status-loading {
    color: var(--color-text-secondary);
    font-style: italic;
}

/* API Logs Summary - Dark-Style */
.api-logs-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-background-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.api-logs-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-logs-list {
    max-height: 400px;
    overflow-y: auto;
    background: var(--color-background-light);
    border-radius: 6px;
    border: 1px solid var(--color-border);
    padding: 0.5rem;
}

.api-log-entry {
    padding: 0.4rem 0.6rem;
    margin-bottom: 0.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-log-entry:last-child {
    margin-bottom: 0;
}

.api-log-entry.info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #60a5fa;
}

.api-log-entry.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: #34d399;
}

.api-log-entry.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #f87171;
}

.api-log-entry.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left-color: var(--color-warning);
    color: #fbbf24;
}

.api-log-entry.api_call_start {
    background-color: rgba(156, 39, 176, 0.1);
    border-left-color: #9c27b0;
    color: #c084fc;
}

.api-log-entry.api_call_result {
    background-color: rgba(0, 150, 136, 0.1);
    border-left-color: #009688;
    color: #5eead4;
}

.log-message {
    flex: 1;
    word-break: break-word;
}


/* Upload Button - Dark-Style */
.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
}

/* File Name Display - Dark-Style */
.file-name-display {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.file-name-display #selected-file-name {
    font-weight: 500;
    color: var(--color-primary);
}

.upload-button:hover {
    background-color: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 160, 220, 0.4);
}

.upload-button:active {
    transform: translateY(0);
}

.matrix-button:disabled {
    background-color: var(--color-border);
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.matrix-button:disabled:hover {
    background-color: var(--color-border);
    transform: none;
}

/* Powered By Container - Dark-Style */
.powered-by-container {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    background: var(--color-background-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.powered-by-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.text-center {
    text-align: center;
}

/* Download Info - Dark-Style */
.download-info {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.download-info p {
    margin: 0;
    color: #60a5fa;
}

.download-info strong {
    color: #3b82f6;
}

/* Stats Summary - Dark-Style */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-background-surface);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--color-background-light);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.stat-item strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Download Options - Dark-Style */
.download-options {
    margin: 2rem 0;
}

.download-options h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.download-button.identified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.download-button.identified:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.download-button.all {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.download-button.all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.download-button svg {
    flex-shrink: 0;
}

/* Non-identified names section - Dark-Style */
.non-identified-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
}

.non-identified-section h3 {
    color: #fbbf24;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.non-identified-section p {
    color: #fbbf24;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.textarea-container {
    position: relative;
}

.non-identified-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    background: var(--color-background-light);
    color: var(--color-text-primary);
    resize: vertical;
    min-height: 120px;
}

.non-identified-textarea:focus {
    outline: none;
    border-color: var(--color-warning);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.textarea-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.copy-button,
.select-all-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-warning);
    border-radius: 8px;
    background: var(--color-background-surface);
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover,
.select-all-button:hover {
    background: var(--color-warning);
    color: white;
}

.copy-button:active,
.select-all-button:active {
    transform: translateY(1px);
}

.copy-button svg,
.select-all-button svg {
    width: 14px;
    height: 14px;
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .home-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .matrix-container {
        padding: 2rem;
    }
    
    .matrix-title {
        font-size: 2.25rem;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .home-container {
        max-width: 1200px;
        padding: 0;
    }
    
    .matrix-container {
        padding: 2.5rem;
    }
    
    .matrix-title {
        font-size: 2.5rem;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .home-container {
        max-width: 1200px;
    }
    
    .matrix-container {
        padding: 2.5rem;
    }
}

/* Mobile-First: Basis-Styles für mobile Geräte (werden für größere Screens überschrieben) */
.status-container {
    margin-top: 1.5rem;
    padding: 1rem;
}

.status-log {
    max-height: 150px;
    font-size: 0.8rem;
}

.api-logs-summary {
    margin: 1.5rem 0;
    padding: 1rem;
}

.api-logs-list {
    max-height: 200px;
}

.download-buttons {
    flex-direction: column;
}

.download-button {
    justify-content: center;
}

.stats-summary {
    grid-template-columns: 1fr;
}

.non-identified-section {
    padding: 1rem;
}

.textarea-actions {
    flex-direction: column;
}

.copy-button,
.select-all-button {
    justify-content: center;
}

/* Tablet/iPad (min-width: 600px) - Überschreibt mobile Styles */
@media (min-width: 600px) {
    .status-container {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .status-log {
        max-height: 200px;
        font-size: 0.875rem;
    }
    
    .api-logs-summary {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .api-logs-list {
        max-height: 400px;
    }
    
    .download-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .download-button {
        justify-content: flex-start;
    }
    
    .stats-summary {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .non-identified-section {
        padding: 1.5rem;
    }
    
    .textarea-actions {
        flex-direction: row;
    }
    
    .copy-button,
    .select-all-button {
        justify-content: flex-start;
    }
}
