/* Основные стили */
:root {
    --tiktok-primary: #ff0050;
    --tiktok-secondary: #00f2ea;
    --instagram-primary: #f09433;
    --instagram-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --youtube-primary: #ff0000;
    --youtube-secondary: #ff4d4d;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Навигация */
.navbar-brand {
    font-size: 1.4rem;
}

/* Бейджи платформ */
.platform-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.platform-tiktok {
    background: var(--tiktok-primary) !important;
    color: white !important;
}

.platform-instagram {
    background: var(--instagram-gradient) !important;
    color: white !important;
}

.platform-youtube {
    background: var(--youtube-primary) !important;
    color: white !important;
}

/* Карточки слов */
.word-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.word-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f5f5f5 100%);
    position: relative;
}

.card-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 2px 2px 0;
}

.word-card[data-platform="tiktok"] .card-progress-bar::after {
    background: linear-gradient(90deg, var(--tiktok-secondary) 0%, var(--tiktok-primary) 100%);
}

.word-card[data-platform="instagram"] .card-progress-bar::after {
    background: var(--instagram-gradient);
}

.word-card[data-platform="youtube"] .card-progress-bar::after {
    background: linear-gradient(90deg, var(--youtube-primary) 0%, var(--youtube-secondary) 100%);
}

.word-card .card-body {
    padding: 1.25rem;
}

/* Модальное окно */
.modal-content {
    border-radius: 20px;
    border: none;
}

.modal-header {
    padding: 1rem 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.word-detail .word-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.word-detail .word-definition {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.word-detail .examples-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.word-detail .example-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-style: italic;
}

.word-detail[data-platform="tiktok"] .example-item {
    border-left-color: var(--tiktok-primary);
}

.word-detail[data-platform="instagram"] .example-item {
    border-left-color: #dc2743;
}

.word-detail[data-platform="youtube"] .example-item {
    border-left-color: var(--youtube-primary);
}

.speak-icon {
    cursor: pointer;
    font-size: 1.2rem;
    color: #667eea;
    transition: color 0.2s;
    margin-left: 8px;
    vertical-align: middle;
}

.speak-icon:hover {
    color: #764ba2;
}

.search-link {
    color: #999;
    transition: color 0.2s;
    margin-left: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    vertical-align: middle;
}

.search-link:hover {
    color: #ff0000;
}

.word-images {
    margin-top: 2rem;
}

.word-images img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .word-detail .word-title {
        font-size: 1.8rem;
    }

    .modal-dialog {
        margin: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 0.95rem;
    }
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Admin styles */
.table td {
    vertical-align: middle;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
