/* apps/downloads/assets/css/downloads.css */

/* ============================================================
   СТРАНИЦА СКАЧИВАНИЯ
   ============================================================ */

.download-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.download-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px 20px 0 0;
    color: white;
}

.download-header .download-icon {
    font-size: 56px;
    margin-bottom: 10px;
    display: block;
}

.download-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-header .download-version {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.download-header .download-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.download-content {
    background: white;
    border-radius: 0 0 20px 20px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.download-info {
    margin-bottom: 30px;
}

.download-info h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.download-info p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 12px;
}

.download-changelog {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.download-changelog h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.download-changelog p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
    white-space: pre-wrap;
}

.download-stats {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
    margin: 20px 0;
}

.download-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
}

.download-stats .stat-item i {
    color: #3498db;
}

.download-stats .stat-item strong {
    color: #2c3e50;
}

/* Кнопка скачивания */
.download-btn-wrapper {
    text-align: center;
    margin: 30px 0 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.4);
}

.download-btn i {
    font-size: 24px;
}

.download-btn .btn-size {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

/* Отзывы */
.reviews-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f2f5;
}

.reviews-section h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-section .rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.rating-summary .rating-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.rating-summary .rating-stars {
    color: #f39c12;
    font-size: 18px;
}

.rating-summary .rating-total {
    color: #7f8c8d;
    font-size: 14px;
}

/* Форма отзыва */
.review-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.review-form h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.review-form .form-group {
    margin-bottom: 15px;
}

.review-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.review-form .form-group input,
.review-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.review-form .form-group input:focus,
.review-form .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.review-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.review-form .rating-select {
    display: flex;
    gap: 8px;
}

.review-form .rating-select button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.3s;
    padding: 0 4px;
}

.review-form .rating-select button.active,
.review-form .rating-select button:hover {
    color: #f39c12;
}

.review-form .submit-btn {
    padding: 10px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.review-form .submit-btn:hover {
    background: #2980b9;
}

/* Список отзывов */
.reviews-list {
    margin-top: 20px;
}

.review-item {
    padding: 18px 0;
    border-bottom: 1px solid #f0f2f5;
}

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

.review-item .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.review-item .review-name {
    font-weight: 600;
    color: #2c3e50;
}

.review-item .review-stars {
    color: #f39c12;
    font-size: 14px;
}

.review-item .review-date {
    color: #95a5a6;
    font-size: 12px;
}

.review-item .review-comment {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.review-item .review-status {
    font-size: 12px;
    color: #f39c12;
    font-style: italic;
}

/* Шорткод */
.download-shortcode-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.download-shortcode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    color: white;
}

.download-shortcode-btn .btn-size {
    font-size: 12px;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .download-header {
        padding: 30px 15px 20px;
    }
    
    .download-header h1 {
        font-size: 24px;
    }
    
    .download-header .download-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-content {
        padding: 25px 20px;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn {
        padding: 14px 30px;
        font-size: 17px;
        width: 100%;
        justify-content: center;
    }
    
    .download-btn i {
        font-size: 20px;
    }
    
    .download-shortcode-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .review-form .rating-select button {
        font-size: 24px;
    }
    
    .reviews-section .rating-summary {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .download-header h1 {
        font-size: 20px;
    }
    
    .download-content {
        padding: 20px 15px;
    }
    
    .download-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .download-shortcode-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .review-item .review-header {
        flex-wrap: wrap;
    }
}

.download-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.download-link-btn:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-1px);
}

.download-link-btn i {
    font-size: 13px;
}



/* Ссылка для скачивания (из шорткода) */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    color: white;
}

.download-link .download-size {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.download-link i {
    font-size: 18px;
}


/* ============================================================
   CAPTCHA
   ============================================================ */

.captcha-group {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-expression {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    background: white;
    padding: 8px 18px;
    border-radius: 8px;
    border: 2px solid #3498db;
    min-width: 120px;
    text-align: center;
    user-select: none;
}

.captcha-container input {
    font-size: 20px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    width: 80px;
    transition: border-color 0.3s;
}

.captcha-container input:focus {
    outline: none;
    border-color: #3498db;
}

.captcha-refresh {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: #2980b9;
    transform: rotate(180deg);
}

/* Адаптивность CAPTCHA */
@media (max-width: 480px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-expression {
        font-size: 18px;
        padding: 6px 14px;
        min-width: auto;
    }
    
    .captcha-container input {
        width: 100%;
        font-size: 18px;
    }
    
    .captcha-refresh {
        align-self: center;
    }
}

