/* === Базові стилі === */
body {
    color: #333;
    margin: 0 auto;
    font: 16px "Segoe UI", Arial, sans-serif;
    background: #d6d6d6; /* темніший фон */
    max-width: 650px;
    line-height: 1.5;
}

/* Блоки */
.menu {
    background: #fff;              /* залишаємо білі */
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); /* легка тінь */
}
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #ff6600; }

img {
    border-style: none;
    vertical-align: middle;
    max-width: 100%;
}

/* === Кнопки / посилання === */
a.nizbut {
    border: 1px solid #ccc;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff;
    color: #444;
    transition: all 0.3s ease;
}
a.nizbut:hover { background: #f2f2f2; }

/* === Верхня панель === */
.top_bar {
    font-weight: bold;
    padding: 8px;
    text-align: center;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    border: none;
    border-radius: 6px;
    color: #fff;
    transition: background 0.3s ease;
}
.top_bar:hover { background: linear-gradient(135deg, #f57c00, #ff9800); }

/* === Онлайн === */
.online {
    background: #e8fbe8;
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    padding: 4px 6px;
    margin: 6px 0;
    border: 1px solid #b6e3b6;
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.05);
}
.online a {
    display: inline-block;
    padding: 6px 10px 6px 28px;
    border-radius: 4px;
    color: #2d7a2d;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}
.online a:hover {
    color: #1a4d1a;
    background: rgba(0,0,0,0.05);
}

/* === Форми === */
input, textarea, select {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 6px 8px;
    margin: 4px 0;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: #66afe9;
    background: #f9f9ff;
    outline: none;
}
input[type="submit"] {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.1s ease;
}
input[type="submit"]:hover {
    background: linear-gradient(135deg, #e68900, #d96c00);
    transform: scale(1.05);
}

/* === Блоки === */
.block, .link, .link2 {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 10px 0;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.block:hover, .link:hover, .link2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* === Заголовки === */
.title {
    font-size: 20px;
    font-weight: bold;
    color: #444;
    margin: 20px 0 15px 0;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

/* === Повідомлення / помилки === */
.error {
    background: #f44336;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: bold;
}

/* === Копірайт === */
.copy {
    color: #aaa;
    font-size: 12px;
    text-align: right;
    padding: 8px;
}
.copy a { color: #888; transition: color 0.3s; }
.copy a:hover { color: #000; }

/* === Лічильники (гарний стиль, твої класи) === */
.count {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 10px;
}
.count .count1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
    min-width: 80px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.count .count1:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.count .count1::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    pointer-events: none;
}
.count .count1 span {
    display: block;
    font-size: 22px;
    font-weight: 900;
}
.count .count-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    color: rgba(255,255,255,0.85);
}

/* === ШАПКА (анімація + не виходить за ширину) === */
.header {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 10px;
    text-align: center;
    color: #fff;
    letter-spacing: 3px;
    background-image: linear-gradient(90deg, #0057b7 0%, #ffd700 50%, #0057b7 100%);
    background-size: 300% 300%;
    animation: gradientFlow 14s linear infinite;
    position: relative;
    overflow: visible;
    z-index: 10;
}
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 2px, transparent 2px, transparent 6px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 2px, transparent 2px, transparent 6px);
    opacity: 0.6;
    pointer-events: none;
}
.header span {
    animation: glow 2s ease-in-out infinite alternate;
}

/* === Анімація градієнта шапки === */
@keyframes glow {
    from { text-shadow: 0 0 5px #fff, 0 0 10px #0057b7; }
    to   { text-shadow: 0 0 10px #ffd700, 0 0 20px #0057b7; }
}
@-webkit-keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Стиль анкети / профілю === */
.profile-card { background: #fff; border-radius: 14px; padding: 15px; margin: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.12); font-family: Arial, sans-serif; font-size: 14px; color: #333; }
.profile-header { text-align: center; margin-bottom: 15px; }
.profile-status { font-size: 16px; font-weight: bold; color: #ff9800; margin-bottom: 5px; }
.profile-last, .profile-rating { font-size: 13px; color: #777; }
.profile-main { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; }
.profile-avatar img { border-radius: 10px; max-width: 120px; border: 3px solid #2196f3; }
.profile-info { flex: 1; }
.bubble { background: #f1faff; border: 1px solid #d0e7ff; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.profile-button { text-align: center; margin: 15px 0; }
.profile-button .btn-view { display: inline-block; padding: 10px 18px; background: linear-gradient(135deg, #2196f3, #1976d2); color: #fff; font-weight: bold; border-radius: 8px; transition: all 0.2s ease; text-decoration: none; }
.profile-button .btn-view:hover { background: linear-gradient(135deg, #42a5f5, #1565c0); transform: scale(1.05); }
.profile-actions .action { display: block; background: #e3f2fd; color: #1976d2; padding: 8px 10px; border-radius: 6px; margin: 6px 0; font-weight: bold; text-decoration: none; transition: background 0.2s ease; }
.profile-actions .action:hover { background: #bbdefb; }
.profile-footer { margin-top: 15px; font-size: 13px; color: #555; }
.profile-footer .bubble { background: #fafafa; border: 1px solid #eee; }

/* 📸 Фото */
.men img { max-width: 50%; height: auto; display: block; margin: 10px auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 3px solid #007bff; background: #fff; padding: 5px; }
.men .info-item { margin: 8px 0; display: flex; align-items: center; gap: 8px; font-weight: 500; color: #444; }
.men .info-item i { color: #3b82f6; font-size: 16px; }
.men a { color: #0066cc; font-weight: 600; text-decoration: none; }
.men a:hover { text-decoration: underline; }

/* === Кнопка завантаження === */
.upload-btn {
  display: block;
  width: 90%;
  max-width: 500px;
  text-align: lift;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px auto;
  background: linear-gradient(90deg, #007bff, #00cc66, #ffcc00);
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background-image: 
    linear-gradient(0deg, rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, #007bff, #00cc66, #ffcc00),
    linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25));
  background-size: 8px 8px, 8px 8px, 100% 100%, 100% 100%;
  background-blend-mode: overlay;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

/* === Адаптив для мобільних === */
@media (max-width: 480px) {
    .count { gap: 6px; }
    .count .count1 { padding: 10px 12px; min-width: 70px; font-size: 14px; }
    .count .count1 span { font-size: 18px; }
    .count .count-label { font-size: 11px; }
}



/* === Меню (списком) === */
.menu {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.menu .menu-title {
    padding: 8px 12px;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #4a90e2, #357ab8);
}

.menu .menu-content { background: #fff; }

.menu .menu-item {
    padding: 6px 10px;
    font-size: 14px;
    border-bottom: 1px dotted #ddd;
    background: none;
}

.menu .menu-item:last-child { border-bottom: none; }

.menu .menu-item a {
    color: #357ab8;
    text-decoration: none;
}

.menu .menu-item a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* === Заголовок блоків (оновлений custom-title) === */
.

.menu-link {
    color: #357ab8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.menu-link:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* === Виджет завантажень (оновлений) === */
/* === Виджет завантажень (3-й варіант: світло-синій) === */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;           
    margin-bottom: 8px;          
    background: #e6f0ff;          /* світло-синій фон */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); 
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.download-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    background: #cce0ff;           /* темніший синій при hover */
}

.download-left {
    display: flex;
    align-items: center;
    gap: 8px;                   
}

.download-icon img {
    width: 32px;                
    height: 32px;
}

.download-link {
    font-weight: 500;
    font-size: 14px;            
    color: #0056cc;              /* темніший синій для тексту */
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}

.download-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;            
    color: #555;
}

.download-right .count {
    font-weight: bold;
}

.download-right .new {
    color: #d9534f;
    font-weight: bold;
    margin-top: 2px;
}

.download-button {
    margin-top: 4px;
    padding: 4px 8px;           
    background: #007bff;          /* синя кнопка */
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

.download-button:hover {
    background: #0056cc;          /* темніший синій при hover */
}


/* === Лічильники завантажень (гарний стиль) === */
.download-right .count-box {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.download-right .count-box .count1 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    overflow: hidden;
}

.download-right .count-box .count1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.download-right .count-box .count1::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    pointer-events: none;
}

.download-right .count-box .count1 span {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.download-right .count-box .count-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    color: rgba(255,255,255,0.85);
}

/* Адаптив для мобільних */
@media (max-width: 480px) {
    .download-right .count-box {
        flex-wrap: wrap;
        gap: 4px;
    }
    .download-right .count-box .count1 {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 40px;
    }
    .download-right .count-box .count1 span {
        font-size: 16px;
    }
    .download-right .count-box .count-label {
        font-size: 10px;
    }
}

/* === Заголовок блоків (custom-title) === */
.custom-title {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    background: linear-gradient(135deg, #4a90e2, #9013fe); /* сучасний синьо-фіолетовий градієнт */
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); /* глибина та тінь */
    position: relative;
    overflow: hidden;
}

.custom-title::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: rotate(25deg);
    pointer-events: none;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: rotate(25deg) translateX(-100%); }
    100% { transform: rotate(25deg) translateX(100%); }
}

.block-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* тінь для іконки */
}

.title-text {
    display: inline-block;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* легке свічення тексту */
}


/* === Гостьова книга / Міні-чат (сучасний стиль) === */
/* === Гостьова книга / Міні-чат (сучасний стиль, правий лічильник) === */
.guestbook-widget {
    display: flex;
    justify-content: space-between; /* ліво-право */
    align-items: center;
    background: #f3e6ff;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    margin: 10px 0;
}

.guestbook-widget .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guestbook-widget .right {
    display: flex;
    align-items: center;
}

.guestbook-widget .count1 {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
}

