/*
 Theme Name:   BuddyX Child
 Description:  BuddyX Child Theme
 Author:       Vida Dejting
 Template:     buddyx
 Version:      1.0.0
*/

/* ==========================================================================
   1. ВИЗУАЛ АВАТАРОК
   ========================================================================== */
/* Делаем аватарку круглой, с белой рамкой и легкой тенью */
#buddypress #item-header-cover-image #item-header-avatar img.avatar {
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* ==========================================================================
   2. ДИЗАЙН АНКЕТЫ (Вопросы и ответы)
   ========================================================================== */
/* Убираем жесткие рамки у таблиц профиля (легкий дизайн) */
#buddypress table.profile-fields {
    border: none !important;
    background: transparent !important;
}

/* Оставляем только тонкую стильную линию внизу каждой строки */
#buddypress table.profile-fields tr td,
#buddypress table.profile-fields tr th {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    padding: 15px 10px !important;
}

/* Перекрашиваем сами вопросы (Namn, Ålder и т.д.) в фирменный зеленый */
#buddypress table.profile-fields tr th {
    color: #4b6b4f !important;
    font-weight: 600 !important;
    width: 35%; /* Даем вопросам место, чтобы они не слипались с ответами */
}

/* Скрываем системное слово "Base" над анкетой */
#buddypress .profile-fields h2 {
    display: none !important;
}

/* ==========================================================================
   3. МЕНЮ ПРОФИЛЯ И СЧЕТЧИКИ
   ========================================================================== */
/* Временно скрываем вкладку "Aviseringar" (Оповещения) из меню */
#buddypress div#item-nav ul li#notifications-personal-li {
    display: none !important;
}

/* Убиваем агрессивный зеленый квадрат у счетчика друзей, делаем аккуратную серую цифру */
#buddypress div#item-nav ul li a span.count {
    background: transparent !important;
    color: #888 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-left: 5px;
    font-size: 0.9em !important;
}

/* ==========================================================================
   4. AVATAR ZOOM
   ========================================================================== */
img.avatar {
    cursor: zoom-in;
}

#wpadminbar img.avatar,
.site-branding img.avatar,
.link-change-profile-image img.avatar,
.link-change-cover-image img.avatar {
    cursor: default;
}

.avatar-zoom-open {
    overflow: hidden;
}

.avatar-zoom-modal[hidden] {
    display: none !important;
}

.avatar-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.avatar-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 26, 21, 0.72);
    backdrop-filter: blur(3px);
}

.avatar-zoom-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    height: min(420px, calc(100vw - 32px));
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.avatar-zoom-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.avatar-zoom-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f2c22;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   VIDA FRONT PAGE STYLES
   ========================================================================== */

:root {
    --vida-green: #397650;
    --vida-green-dark: #2a583c;
    --vida-cream: #fbf9f6;
    --vida-text: #333333;
    --vida-text-light: #666666;
    --vida-white: #ffffff;
    --vida-font-main: 'Inter', 'Helvetica Neue', sans-serif;
}

/* Base and Layout */
.vida-front-page {
    font-family: var(--vida-font-main);
    color: var(--vida-text);
    line-height: 1.6;
}

.vida-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.vida-container--small {
    max-width: 800px;
}

.vida-container-fluid {
    width: 100%;
}

.vida-bg-cream {
    background-color: var(--vida-cream);
}

.vida-bg-green {
    background-color: var(--vida-green);
    color: var(--vida-white);
}

.vida-text-center {
    text-align: center;
}

.vida-mb-4 {
    margin-bottom: 2rem;
}

.vida-text-bold {
    font-weight: 700;
}

/* Typography */
.vida-section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    color: var(--vida-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vida-section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--vida-text-light);
    margin-bottom: 3rem;
}

.vida-divider {
    width: 60px;
    height: 3px;
    background-color: var(--vida-green);
    margin: 0 auto 2rem auto;
}

.vida-link {
    color: var(--vida-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vida-link:hover {
    color: var(--vida-green-dark);
}

/* Buttons */
.vida-btn {
    display: inline-block;
    background-color: var(--vida-green);
    color: var(--vida-white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.vida-btn:hover {
    background-color: var(--vida-green-dark);
    transform: translateY(-2px);
}

.vida-btn--full {
    width: 100%;
}

/* Hero Section */
.vida-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.vida-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.vida-hero__content {
    position: relative;
    z-index: 2;
    color: var(--vida-white);
    padding: 0 20px;
}

.vida-hero__title {
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vida-hero__subtitle {
    font-size: 2rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .vida-hero__title {
        font-size: 2.5rem;
    }
    .vida-hero__subtitle {
        font-size: 1.5rem;
    }
}

/* About Section */
.vida-about__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.vida-about__content p {
    margin-bottom: 1.5rem;
}

.vida-about__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.vida-about__list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

/* Services Grid */
.vida-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vida-service-card {
    background: var(--vida-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vida-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.vida-service-card__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.vida-service-card__body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vida-service-card__title {
    font-size: 1.4rem;
    color: var(--vida-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.vida-service-card__desc {
    color: var(--vida-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.vida-service-card__price {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--vida-text);
}

/* Community Section */
.vida-community {
    position: relative;
}

.vida-community__bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}

.vida-community__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29,62,52,0.60), rgba(11,11,11,0.60));
    z-index: 1;
}

.vida-community__content {
    position: relative;
    z-index: 2;
    color: var(--vida-white);
}

.vida-community__title {
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
}

.vida-community__text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    text-align: center;
}

.vida-community__text p {
    margin-bottom: 1.5rem;
}

/* Form Section */
.vida-form {
    background: var(--vida-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.vida-form-group {
    margin-bottom: 20px;
}

.vida-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--vida-text);
}

.vida-form-group input,
.vida-form-group select,
.vida-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--vida-font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.vida-form-group input:focus,
.vida-form-group select:focus,
.vida-form-group textarea:focus {
    outline: none;
    border-color: var(--vida-green);
}

.vida-form-submit {
    margin-top: 30px;
}

.vida-form-disclaimer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--vida-text-light);
    text-align: center;
}

.vida-form-disclaimer a {
    color: var(--vida-green);
    text-decoration: underline;
}

/* Contact Section */
.vida-contact__title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.vida-contact__title a {
    color: var(--vida-white);
    text-decoration: none;
    font-weight: 600;
}

.vida-contact__title a:hover {
    text-decoration: underline;
}

.vida-contact__social a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.vida-contact__social a:hover {
    transform: scale(1.1);
}

/* News Placeholder */
.vida-news-feed-placeholder {
    background: var(--vida-cream);
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: var(--vida-text-light);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
