/* Личный кабинет автора */

.author-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.author-header {
    margin-bottom: 32px;
}

.author-header h1 {
    font-size: 28px;
    color: #313131;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-header h1 i {
    color: #d5e300;
}

.author-subtitle {
    color: #666;
    font-size: 16px;
}

/* Дашборд */
.author-dashboard {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.published { background: #d4edda; color: #155724; }
.stat-icon.moderation { background: #fff3cd; color: #856404; }
.stat-icon.draft { background: #e2e3e5; color: #383d41; }
.stat-icon.views { background: #cce5ff; color: #004085; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #313131;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Портфолио */
.author-portfolio {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.author-portfolio .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.author-portfolio .section-header h2 {
    font-size: 20px;
    color: #313131;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-filters .filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.portfolio-filters .filter-btn:hover,
.portfolio-filters .filter-btn.active {
    background: #d5e300;
    border-color: #d5e300;
    color: #313131;
}

.works-grid {
    min-height: 120px;
    position: relative;
}

.works-loading {
    text-align: center;
    padding: 48px;
    color: #666;
}

.works-empty {
    text-align: center;
    padding: 48px;
    color: #666;
}

.works-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.works-empty .btn {
    margin-top: 16px;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.work-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.work-card-preview {
    aspect-ratio: 16/9;
    background: #e9ecef;
    overflow: hidden;
}

.work-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-body {
    padding: 16px;
}

.work-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #313131;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.work-card-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.work-card-status.published { background: #d4edda; color: #155724; }
.work-card-status.moderation { background: #fff3cd; color: #856404; }
.work-card-status.draft { background: #e2e3e5; color: #383d41; }
.work-card-status.rejected { background: #f8d7da; color: #721c24; }

.work-card-actions {
    display: flex;
    gap: 8px;
}

.work-card-actions .btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.2s;
}

.work-card-actions .btn-icon:hover {
    background: #d5e300;
    color: #313131;
}

/* Страница загрузки */
.author-upload-page {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
    background: #f8f9fa;
}

.upload-header {
    margin-bottom: 24px;
}

.upload-header h1 {
    font-size: 24px;
    color: #313131;
    margin-top: 12px;
}

.work-form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.form-steps {
    margin-bottom: 32px;
}

.step-indicator {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.step-indicator .step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s;
}

.step-indicator .step.active {
    background: #d5e300;
    color: #313131;
}

.step-labels {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #666;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step .form-group {
    margin-bottom: 20px;
}

.form-step label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-step .required {
    color: #c00;
}

.form-step input[type="text"],
.form-step input[type="number"],
.form-step textarea,
.form-step select {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.form-step textarea {
    resize: vertical;
    min-height: 100px;
}

.form-step small,
.help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    min-height: 120px;
}

.upload-placeholder i {
    font-size: 36px;
    color: #ccc;
    margin-bottom: 12px;
    display: block;
}

.upload-warning {
    font-size: 12px;
    color: #856404;
    background: #fff3cd;
    padding: 8px;
    border-radius: 6px;
    margin: 12px 0;
}

.upload-preview {
    position: relative;
    display: inline-block;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
}

.btn-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.gallery-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-order {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(200,0,0,0.8);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
}

.file-name {
    margin-left: 12px;
    font-size: 14px;
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; }
