/* Загальні стилі та глобальні класи */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.instagram-badge {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    font-weight: 600;
}

/* Глобальний футер */
.footer {
    background-color: #212529;
    border-top: 1px solid #2c3034;
    width: 100%;
    margin-top: auto;
}

.footer-link {
    color: #a0a5b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Картки постів (index.html) */
.post-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.card-img-container {
    position: relative;
    height: 260px;
    background-color: #eaeaea;
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.media-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.btn-draw {
    background-color: #4f46e5;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-draw:hover {
    background-color: #4338ca;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Картки та обгортки для сторінки історії розіграшів */
.content-wrapper {
    background: white;
    border-radius: 16px;
    border: none;
}

.history-card {
    transition: all 0.2s ease-in-out;
    border-left: 5px solid #6366f1 !important; /* Фіолетовий маркер ліворуч */
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Додатковий утилітарний стиль для дуже дрібного тексту */
.text-xs {
    font-size: 0.75rem;
}

/* Сторінка авторизації (login.html) */
.auth-body {
    background: radial-gradient(circle at center, #1e1e2f 0%, #11111d 100%) !important;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #11111d;
}

.btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    color: white;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: #ffebe6;
    color: #dc2743;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    font-size: 2rem;
}

/* Сторінка розіграшу (post_detail.html) */
.btn-action-draw {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-action-draw:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.winner-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.winner-card::before {
    content: '🏆';
    position: absolute;
    right: 15px;
    bottom: -5px;
    font-size: 5rem;
    opacity: 0.12;
}

.comment-item {
    border-left: 4px solid #eaeaea;
    transition: all 0.2s;
}

.comment-item:hover {
    background-color: #f8fafc;
    border-left-color: #4f46e5;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    background-color: #e2e8f0;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Додатковий стиль для форми фільтрів */
.shadow-inner {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Сторінка виходу з системи (logout.html) */
.logout-card {
    background-color: #1a1d29;
    border: 1px solid #2a2f45;
    border-radius: 16px;
}

.btn-danger-custom {
    background-color: #dc3545;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.btn-danger-custom:hover {
    background-color: #bb2d3b;
    color: white;
}