/* ============================================================
   ИНВЕСТИЦИОННЫЕ ПРОЕКТЫ - СТИЛИ ДЛЯ ТЕМНОЙ ТЕМЫ
   Основано на стилях плагина Investment Projects
   Адаптировано для темы dw-micronix с темной схемой
   Версия: 2.0 (исправленная)
   ============================================================ */

/* ===== ОБЩИЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --ip-border: rgba(255, 255, 255, 0.08);
    --ip-shadow: rgba(0, 0, 0, 0.5);
    --ip-bg-light: rgba(255, 255, 255, 0.03);
    --ip-bg-hover: rgba(255, 255, 255, 0.06);
    --ip-success: #45bd49;
    --ip-success-dark: #2d8a30;
    --ip-warning: #dbb300;
    --ip-danger: #dc3545;
    --ip-info: #2196F3;
}

/* ============================================================
   ФОРМА ПУБЛИКАЦИИ ПРОЕКТА
   ============================================================ */

#ip-form .rcl-field {
    margin: 15px 0;
}

#ip-form .rcl-field .field-title {
    font-size: 18px;
    line-height: 1.4;
    color: var(--titles);
    font-weight: 600;
}

#ip-form .submit-box {
    text-align: right;
    background: var(--secondarybg);
    overflow: hidden;
    border: 1px solid var(--ip-border);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#ip-form .submit-box a {
    font-size: 15px;
    padding: 8px 20px;
    display: inline-block;
    background: linear-gradient(0deg, #4d4d4d 95%, #afafaf 100%);
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: inset 0 0 3px #ffffff, 0 0 5px #000000;
    color: var(--links);
    text-shadow: 0px 0px 2px #000;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
}

#ip-form .submit-box a:hover {
    color: var(--links-hover);
    filter: brightness(1.1);
}

/* ============================================================
   МЕНЕДЖЕР ПРОЕКТА
   ============================================================ */

.ip-project-manager {
    clear: both;
    text-align: right;
    border: 1px solid var(--ip-border);
    padding: 10px 15px;
    background: var(--secondarybg);
    margin: 15px 0;
    border-radius: 8px;
}

.ip-project-manager .manager-item {
    display: inline-block;
    margin: 5px 8px;
}

.ip-project-manager .manager-item > a {
    font-size: 13px;
    padding: 6px 14px;
    background: linear-gradient(0deg, #4d4d4d 95%, #afafaf 100%);
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: inset 0 0 3px #ffffff, 0 0 5px #000000;
    color: var(--links);
    text-shadow: 0px 0px 2px #000;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.ip-project-manager .manager-item > a:hover {
    color: var(--links-hover);
    filter: brightness(1.1);
}

/* ============================================================
   КАРТОЧКИ СОЗДАТЕЛЕЙ - ОРИГИНАЛЬНЫЕ РАЗМЕРЫ 50px
   ============================================================ */

.ip-creator-requests,
.ip-creator {
    position: relative;
    clear: both;
}

.ip-creator-requests .creator-request {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    width: 250px;
    border: 1px solid var(--ip-border);
    padding: 12px;
    line-height: 1.4;
    background: var(--ip-bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ip-creator-requests .creator-request:hover {
    background: var(--ip-bg-hover);
    border-color: var(--links);
}

.ip-creator .creator {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    line-height: 1.4;
    background: var(--ip-bg-light);
    border-radius: 8px;
    border: 1px solid var(--ip-border);
}

.ip-creator-requests .creator-request .avatar-creator {
    float: left;
    margin-right: 12px;
}

.ip-creator-requests .creator-request img,
.ip-creator .creator img {
    float: none;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 2px solid var(--links);
}

.ip-creator-requests .creator-request .creator-meta {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--maintext);
}

.ip-creator-requests .creator-request .creator-meta strong {
    color: var(--titles);
}

/* ============================================================
   АДМИН-ПАНЕЛЬ ПРОЕКТА
   ============================================================ */

#ip-admin-project {
    max-width: 700px;
}

/* ============================================================
   МЕТА-ДАННЫЕ ПРОЕКТА
   ============================================================ */

.project-metalist {
    padding: 15px 20px;
    background: var(--secondarybg);
    border: 1px solid var(--ip-border);
    line-height: 1.6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.project-metalist p {
    margin-bottom: 8px;
    color: var(--maintext);
}

.project-metalist .project-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ip-border);
}

.project-metalist .project-meta:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-metalist .project-meta .rcli {
    margin-right: 10px;
    color: var(--links);
    width: 20px;
    text-align: center;
}

.project-metalist .project-meta .ip-creator-requests {
    background: var(--ip-bg-light);
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
}

.project-metalist .project-meta .ip-creator-requests .creator-request img {
    vertical-align: middle;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    border: 2px solid var(--links);
}

/* ============================================================
   СТАТУС СБОРА СРЕДСТВ - ОРИГИНАЛЬНЫЙ ВИД (БЕЗ ФОНА)
   ============================================================ */

.project-status-box {
    padding: 5px;
    margin-bottom: 10px;
}

.project-status-box .status-name {
    /* Оригинальный стиль */
}

.project-status-box .project-scale {
    display: flex;
    width: 100%;
    text-align: right;
    line-height: 1;
    padding: 15px 0;
}

.project-status-box .project-scale .scale-box {
    display: block;
    width: 100%;
    background: #ccc;
    height: 15px;
    position: relative;
}

.project-status-box .project-scale .no-active {
    /* Оригинальный стиль */
}

.project-status-box .project-scale .scale-step {
    display: inline-block;
    background: var(--secondarybg);
    text-align: center;
    border: 1px solid #333;
    padding: 5px 9px;
    position: absolute;
    z-index: 9;
    top: -5px;
    right: 0;
}

.project-status-box .project-scale .active-box {
    background: #45bd49;
}

.project-status-box .project-scale .active-box .scale-step {
    background: var(--secondarybg);
}

/* ============================================================
   ЦЕНА ПРОЕКТА - ОРИГИНАЛЬНЫЙ ВИД
   ============================================================ */

.project-price-box {
    padding: 5px;
    margin-bottom: 10px;
}

.project-price-box .price-status {
    /* Оригинальный стиль */
}

.project-price-box .price-scale {
    background: #ccc;
    height: 15px;
    margin: 10px 0;
}

.project-price-box .price-scale .scale-box {
    display: block;
    background: #45bd49;
    position: relative;
    height: 15px;
    min-width: 32px;
}

.project-price-box .price-scale .scale-box .scale-step {
    position: absolute;
    right: 0;
    background: #fff;
    padding: 1px 5px;
    box-shadow: -1px 0px 3px #333;
    font-size: 12px;
}

/* ============================================================
   ФОРМА ПОИСКА
   ============================================================ */

.ip-search-form {
    margin-bottom: 20px;
}

.ip-search-form.type-vertical .rcl-field {
    margin: 12px 0;
}

.ip-search-form.type-vertical .rcl-field .field-title {
    font-size: 15px;
    color: var(--titles);
}

.ip-search-form.type-horizontal {
    border-top: 1px solid var(--ip-border);
    padding-top: 15px;
    background: var(--ip-bg-light);
    padding: 15px 20px;
    border-radius: 8px;
}

.ip-search-form.type-horizontal .rcl-field {
    width: 32%;
    display: inline-block;
    padding: 6px 8px;
    margin: 0;
    vertical-align: top;
}

.ip-search-form.type-horizontal .rcl-field .field-title {
    font-size: 14px;
    color: var(--titles);
    font-weight: 600;
}

.ip-search-form.type-horizontal .rcl-field .rcl-range-value {
    position: absolute;
    top: -22px;
    right: 0;
    min-width: auto;
    background: var(--secondarybg);
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--links);
    border: 1px solid var(--ip-border);
}

.ip-search-form.type-horizontal .rcl-field .block-label {
    background: transparent;
    border: none;
    margin: 4px 0;
    color: var(--maintext);
}

/* Стили для полей ввода в темной теме */
.ip-search-form input[type="text"],
.ip-search-form input[type="number"],
.ip-search-form select {
    background: var(--secondarybg);
    border: 1px solid var(--ip-border);
    color: var(--maintext);
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%;
}

.ip-search-form input[type="text"]:focus,
.ip-search-form input[type="number"]:focus,
.ip-search-form select:focus {
    border-color: var(--links);
    outline: none;
    box-shadow: 0 0 0 2px rgba(219, 179, 0, 0.2);
}

/* Стили для слайдеров в темной теме */
.ip-search-form input[type="range"] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

.ip-search-form input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ip-search-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--links);
    margin-top: -5px;
    cursor: pointer;
}

.ip-search-form input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: none;
}

.ip-search-form input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--links);
    cursor: pointer;
    border: none;
}

/* Стили для кнопок поиска */
.ip-search-form .submit-box {
    text-align: center;
    margin-top: 15px;
}

.ip-search-form .submit-box input[type="submit"] {
    background: linear-gradient(0deg, #4d4d4d 95%, #afafaf 100%);
    border: 1px solid #000;
    border-radius: 5px;
    box-shadow: inset 0 0 3px #ffffff, 0 0 5px #000000;
    color: var(--links);
    text-shadow: 0px 0px 2px #000;
    padding: 8px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ip-search-form .submit-box input[type="submit"]:hover {
    color: var(--links-hover);
    filter: brightness(1.1);
}

/* ============================================================
   СТАТУСЫ В КАРТОЧКАХ
   ============================================================ */

.ip-creator-requests .creator-request .status-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.ip-creator-requests .creator-request .status-pending {
    background: var(--ip-warning);
    color: #000;
}

.ip-creator-requests .creator-request .status-approved {
    background: var(--ip-success);
    color: #fff;
}

.ip-creator-requests .creator-request .status-rejected {
    background: var(--ip-danger);
    color: #fff;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

.ip-creator-requests .creator-request {
    animation: ipCardFadeIn 0.4s ease;
}

@keyframes ipCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   КАСТОМНЫЙ СКРОЛЛ-БАР
   ============================================================ */

.ip-creator-requests {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.ip-creator-requests::-webkit-scrollbar {
    width: 6px;
}

.ip-creator-requests::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.ip-creator-requests::-webkit-scrollbar-thumb {
    background: var(--links);
    border-radius: 3px;
}

.ip-creator-requests::-webkit-scrollbar-thumb:hover {
    background: var(--links-hover);
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media screen and (max-width: 992px) {
    .ip-search-form.type-horizontal .rcl-field {
        width: 46%;
    }
    
    .ip-creator-requests .creator-request {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 768px) {
    .ip-search-form.type-horizontal .rcl-field {
        width: 100%;
        display: block;
    }
    
    .ip-search-form.type-horizontal {
        padding: 12px 15px;
    }
    
    .ip-project-manager {
        text-align: center;
    }
    
    .ip-project-manager .manager-item {
        display: block;
        margin: 8px 0;
    }
    
    .ip-project-manager .manager-item > a {
        width: 100%;
        text-align: center;
    }
    
    #ip-form .submit-box {
        text-align: center;
    }
    
    #ip-form .submit-box a {
        width: 100%;
        text-align: center;
    }
    
    .ip-creator-requests .creator-request {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .ip-creator-requests .creator-request {
        width: 100%;
        margin-right: 0;
    }
    
    .ip-creator .creator {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
    
    .ip-creator-requests .creator-request .avatar-creator {
        float: none;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ip-creator-requests .creator-request .creator-meta {
        text-align: center;
    }
    
    .ip-creator-requests .creator-request img,
    .ip-creator .creator img,
    .project-metalist .project-meta .ip-creator-requests .creator-request img {
        width: 50px !important;
        height: 50px !important;
    }
}