/* ============================================
   КОМПОНЕНТЫ
   ============================================ */

/* ===== КАРТОЧКИ ССЫЛОК ===== */
.link-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-secondary);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.link-card:active {
    transform: translateY(-2px);
}

/* Иконка ссылки */
.link-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.link-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--text-primary);
}

.link-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

/* Контент ссылки */
.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.link-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== КАРТОЧКИ ГЛАВНОЙ СТРАНИЦЫ ===== */
.home-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.home-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-primary);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(40%, -40%);
    transition: all var(--transition-slow);
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.home-card:hover::after {
    transform: translate(30%, -30%) scale(1.2);
    opacity: 0.08;
}

.home-card-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.home-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.home-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 22px;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== УВЕДОМЛЕНИЕ О КОПИРОВАНИИ ===== */
.copy-notification {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border: 1px solid var(--border-secondary);
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
    animation: slideInRight var(--transition-normal) ease-out;
    min-width: 280px;
}

.copy-notification.show {
    display: flex;
}

/* Адаптивность уведомления */
@media (max-width: 768px) {
    .copy-notification {
        top: calc(var(--header-height) + var(--spacing-md));
        right: var(--spacing-md);
        left: var(--spacing-md);
        min-width: 0;
    }
}

/* ===== БЕЙДЖ (BADGE) ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border-secondary);
}

.btn-secondary:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-primary);
}