/**
 * Dealer Corner - Public Styles
 * Clean, professional, industrial design for wateractivity.eu
 */

.dc-corner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
}

.dc-corner *,
.dc-corner *::before,
.dc-corner *::after {
    box-sizing: border-box;
}

/* ----------------- Header ----------------- */
.dc-corner-header {
    text-align: center;
    padding: 30px 20px 35px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e5e7eb;
}

.dc-corner-title {
    font-size: 36px;
    font-weight: 700;
    color: #0c4a6e;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.dc-corner-tagline {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* ----------------- Grid ----------------- */
.dc-corner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .dc-corner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dc-corner-title {
        font-size: 28px;
    }
}

/* ----------------- Section panels ----------------- */
.dc-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.dc-section:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.dc-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #0c4a6e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-section-intro {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ----------------- Download form ----------------- */
.dc-download-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-color: #bae6fd;
}

.dc-input-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .dc-input-group {
        flex-direction: column;
    }
}

.dc-code-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 18px;
    font-family: "Courier New", Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.dc-code-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dc-code-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.dc-btn-primary {
    padding: 14px 28px;
    background: #0284c7;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dc-btn-primary:hover {
    background: #0369a1;
}

.dc-btn-primary:active {
    transform: translateY(1px);
}

.dc-btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.dc-help-text {
    font-size: 13px;
    color: #64748b;
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ----------------- Messages ----------------- */
.dc-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
}

.dc-message-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #dc2626;
}

.dc-message-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #16a34a;
}

.dc-message-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #2563eb;
}

/* ----------------- News list ----------------- */
.dc-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-news-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

.dc-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dc-news-item:first-child {
    padding-top: 0;
}

.dc-news-date {
    flex: 0 0 95px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    padding-top: 2px;
    letter-spacing: 0.02em;
}

.dc-news-body {
    flex: 1;
    min-width: 0;
}

.dc-news-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.4;
}

.dc-news-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.dc-news-content p:last-child {
    margin-bottom: 0;
}

/* ----------------- File list ----------------- */
.dc-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.dc-file-item:hover {
    background: #f8fafc;
}

.dc-file-item:last-child {
    border-bottom: none;
}

.dc-file-icon {
    flex: 0 0 40px;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.dc-file-info {
    flex: 1;
    min-width: 0;
}

.dc-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px;
    word-break: break-word;
}

.dc-file-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 4px;
    line-height: 1.45;
}

.dc-file-meta {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.dc-file-action {
    flex: 0 0 auto;
}

.dc-locked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.dc-locked::before {
    content: "🔒";
    font-size: 11px;
}

/* ----------------- Empty state ----------------- */
.dc-empty {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
}

/* ----------------- Loading state ----------------- */
.dc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dc-inline-feedback {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    min-height: 18px;
}

.dc-inline-feedback.dc-valid {
    color: #16a34a;
}

.dc-inline-feedback.dc-invalid {
    color: #dc2626;
}

/* ----------------- Footer note ----------------- */
.dc-corner-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #94a3b8;
}
