/*
Theme Name: Odobro
Author: Ты
Version: 1.675
Description: Минимальная тема с UIkit 3
*/


body {
background-color: #f4f6fc;
min-height: 100vh;
}

/* кастомизация UIkit 3 */

a {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* прозрачный цвет подсветки */
  }
  
  /* Запрещаем выделение текста внутри ссылок */
  a, a * {
    user-select: none;           /* стандартное свойство */
    -webkit-user-select: none;   /* для Safari/Chrome на iOS/Android */
    -ms-user-select: none;       /* для старых IE/Edge */
  }
  
  /* Убираем рамку/обводку при фокусе (если она появляется после тапа) */
  a:focus, a:active {
    outline: none;
  }


.uk-link, a {
    color: #0b2743;
    text-decoration: none;
    cursor: pointer;
}

.uk-card-title {
    font-size: 1.1rem;
    line-height: 1.2;
}


/* фотографии */
.image-square {
    position: relative;
    width: 100%;           /* или фиксированная ширина */
    padding-top: 100%;     /* делает высоту = ширине */
    overflow: hidden;
  }
  
  .image-square img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
/* информация на карточке*/

.excerpt-line-clamp {
    display: -webkit-box; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative; 
    margin-bottom: 0.3rem;
  }
  
  .read-more-link {
    display: inline-block;
    margin-top: 0.5em;
    font-weight: 500;
    color: #1e87f0; /* UIkit синий */
    text-decoration: underline;
  }


  .uk-h1, h1 {
    font-size: 1.4rem;
    line-height: 1.2;
}

/* profile */
 
 
.profile-photo-wrap,
.profile-bg-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.2rem;
    
}
.profile-photo-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f3f3f3;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    background: #f7f7f7;
}
.profile-bg-img {
    width: 100%; 
    height: 120px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    background: #e9e9e9;
}
.profile-img-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white !important;
    border-radius: 50%;
    border: 1.5px solid #e3e3e3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    z-index: 3;
    color: #e74c3c;
    width: 25px;
    height: 25px;
}
.profile-img-remove:hover {
    background: #f5eaea !important;
    color: #d32f2f;
}
.profile-img-upload {
    margin-top: .4rem;
}
 
.uk-form-label {
    font-size: 1.05rem;
    letter-spacing: .01em;
}
.uk-button.uk-border-pill {
    border-radius: 18px;
}

.profile-bg-img {
    width: 100%; 
    object-fit: cover; 
    display: block;
}
 
.profile-photo-wrap img.profile-photo-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #f7f7f7;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    display: block;
}

.uk-border-rounded-15 {
border-radius: 15px;
}

.uk-border-rounded-7 {
border-radius: 7px;
}

.uk-button {
  text-transform: none;
}
.uk-card-body { 
    padding: 20px 20px;
}


/** Комментарии **/
 
.comment-children { margin-left:10px;}
#comment-form textarea.uk-textarea { min-height:40px; max-height:100px; padding:8px; font-size:15px; }
@media (max-width:640px) {
  .profile-bg-img { height:100px; }
  .profile-photo-img { width:68px; height:68px; }
}
/* reply-форма */
.reply-form-wrapper { display:none; margin:15px 0; }
/* старая новая форма */
.new-form-wrapper   { margin:30px 0; }
/* info */
#reply-to-info { display:none; font-size:14px; margin-bottom:8px; color:#999; }
/* превью картинок */
.preview-item { position:relative; display:inline-block; margin:4px; }
.preview-item img { 
    object-fit: cover;}
.preview-item button { position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;}