/* ========================================= */
/* ATTACHMENT.CSS - Изолированные стили */
/* ========================================= */

/* ========================================= */
/* ATTACHMENT.CSS - Изолированные стили */
/* ========================================= */

/* БАЗОВАЯ ИЗОЛЯЦИЯ (без убийства всех стилей) */
.turbo-attach-wrapper {
    /* Сбрасываем только потенциально проблемные свойства */
    margin: 2rem 0;
    padding: 2rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    
    /* Изолируем от родительских стилей */
    line-height: 1.5;
    font-size: 16px;
    color: #1e293b;
    text-align: left;
    
    /* Убираем наследование .quote стилей */
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
    list-style: none;
}

.turbo-attach-wrapper *,
.turbo-attach-wrapper *::before,
.turbo-attach-wrapper *::after {
    box-sizing: border-box;
}

/* Принудительно задаём цвет для всех SVG */
.turbo-attach-wrapper svg {
    color: #3b82f6; /* Синий по умолчанию */
}

/* Для иконок с явным fill в HTML (#333333) */
.turbo-attach-wrapper svg[fill="#333333"] {
    fill: #3b82f6; !important; /* Тёмно-серый */
}

/* Для иконок со stroke */
.turbo-attach-wrapper svg[stroke="#333333"] {
    stroke: #1e293b !important;
}

.turbo-attach-locked {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

/* ========================================= */
/* ЗАГОЛОВОК */
/* ========================================= */

.turbo-attach-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.turbo-attach-header svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
	
}

.turbo-attach-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* ========================================= */
/* ФАЙЛ С ДОСТУПОМ */
/* ========================================= */

.turbo-attach-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Имя файла */
.turbo-attach-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.turbo-attach-name svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.turbo-attach-name span {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
    line-height: 1.4;
}

/* Статистика */
.turbo-attach-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
}

.turbo-attach-downloads {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.turbo-attach-downloads svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* Кнопки */
.turbo-attach-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.turbo-attach-actions span{

	color: #ffffff;
}

.turbo-attach-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.turbo-attach-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
	   color:red;
}

.turbo-attach-btn--download {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.turbo-attach-btn--download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.turbo-attach-btn--view {
    background: #ffffff;
    color: #64748b;
    border: 2px solid #e2e8f0;
	
}

.turbo-attach-btn--view span {
color: black;
	
	
	.turbo-attach-btn--view svg {
color: black;

.turbo-attach-btn--view:hover {
    border-color: #3b82f6;
    color: #3b82f6;
	transition: all 0.2s;
}

/* ========================================= */
/* ЗАБЛОКИРОВАННЫЙ ДОСТУП */
/* ========================================= */

.turbo-attach-locked-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.turbo-attach-lock-icon {
    margin: 0 0 1.5rem 0;
}

.turbo-attach-lock-icon svg {
    width: 64px;
    height: 64px;
    color: #3b82f6;
}

.turbo-attach-lock-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    padding: 0;
    line-height: 1.2;
}

.turbo-attach-lock-desc {
    font-size: 1.05rem;
    color: #475569;
    margin: 0 0 2rem 0;
    padding: 0;
    line-height: 1.6;
    max-width: 500px;
}

/* Список фич */
.turbo-attach-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 500px;
    margin: 0 0 2rem 0;
    width: 100%;
}

.turbo-attach-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.turbo-attach-feature svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.turbo-attach-feature span {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* Социальное доказательство */
.turbo-attach-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    margin: 0 0 2rem 0;
    font-size: 0.9rem;
    color: #475569;
}

.turbo-attach-social svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* CTA Кнопки */
.turbo-attach-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 0 1.5rem 0;
    flex-wrap: wrap;
}

.turbo-attach-btn--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    padding: 1rem 2rem;
}

.turbo-attach-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.turbo-attach-btn--secondary {
    background: #ffffff;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.75rem;
}

.turbo-attach-btn--secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Примечание */
.turbo-attach-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.turbo-attach-note svg {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    flex-shrink: 0;
}

.turbo-attach-note a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.turbo-attach-note a:hover {
    text-decoration: underline;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 768px) {
    .turbo-attach-wrapper {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .turbo-attach-title {
        font-size: 1.25rem;
    }

    .turbo-attach-name {
        padding: 0.875rem 1rem;
    }

    .turbo-attach-name span {
        font-size: 1rem;
    }

    .turbo-attach-actions {
        flex-direction: column;
    }

    .turbo-attach-btn {
        width: 100%;
    }

    .turbo-attach-lock-title {
        font-size: 1.5rem;
    }

    .turbo-attach-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .turbo-attach-btn--primary,
    .turbo-attach-btn--secondary {
        width: 100%;
    }
}

/* ========================================= */
/* DARK THEME */
/* ========================================= */

[data-theme="dark"] .turbo-attach-wrapper {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .turbo-attach-locked {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
}

[data-theme="dark"] .turbo-attach-header {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .turbo-attach-title,
[data-theme="dark"] .turbo-attach-name span,
[data-theme="dark"] .turbo-attach-lock-title {
    color: #ffffff;
}

[data-theme="dark"] .turbo-attach-name,
[data-theme="dark"] .turbo-attach-stats,
[data-theme="dark"] .turbo-attach-feature {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .turbo-attach-btn--view,
[data-theme="dark"] .turbo-attach-btn--secondary {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .turbo-attach-note {
    background: #0f172a;
}

[data-theme="dark"] .turbo-attach-lock-desc,
[data-theme="dark"] .turbo-attach-feature span {
    color: #cbd5e1;
}

[data-theme="dark"] .turbo-attach-wrapper svg {
    color: #e2e8f0;
}