/**
 * WP Plugin GoTo Styles
 * Стили для отображения кнопок скачивания приложений
 */

.wp-goto-buttons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
    padding: 2rem;
    background-color: transparent;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Десктоп: 2 кнопки в ряд (2 ряда) */
.wp-goto-button-wrapper {
    flex: 0 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-goto-button-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.wp-goto-button-wrapper a:hover {
    transform: scale(1.05);
    opacity: 0.9;
    text-decoration: none !important;
}

/* Все кнопки одинаковой высоты */
.wp-goto-button-wrapper {
    min-height: 80px;
}

.wp-goto-button-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    display: block;
}

/* Стили для кнопки "Register" (зеленая) */
.wp-goto-register-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #09c600;
    border-radius: 10px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    height: 80px;
    box-shadow: 0 4px 12px rgba(9, 198, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.wp-goto-register-link:hover {
    background: #08b000;
    box-shadow: 0 6px 16px rgba(9, 198, 0, 0.5);
    transform: scale(1.05);
    text-decoration: none !important;
}

.wp-goto-register-text {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

/* Стили для кнопки "Log in" (синяя) */
.wp-goto-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #1e73be;
    border-radius: 10px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    height: 80px;
    box-shadow: 0 4px 12px rgba(30, 115, 190, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
}

.wp-goto-login-link:hover {
    background: #155a94;
    box-shadow: 0 6px 16px rgba(30, 115, 190, 0.5);
    transform: scale(1.05);
    text-decoration: none !important;
}

.wp-goto-login-text {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

/* Мобильные: по 1 кнопке в ряду вертикально */
@media (max-width: 768px) {
    .wp-goto-buttons-container {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 15px;
        align-items: center;
        max-width: 280px;
    }
    
    .wp-goto-button-wrapper {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .wp-goto-button-image {
        width: 100%;
        height: 70px;
    }
    
    .wp-goto-register-link,
    .wp-goto-login-link {
        padding: 12px 25px;
        font-size: 15px;
        height: 70px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wp-goto-buttons-container {
        padding: 1rem 0.5rem;
        gap: 12px;
        max-width: 250px;
    }
    
    .wp-goto-button-image {
        height: 65px;
    }
    
    .wp-goto-register-link,
    .wp-goto-login-link {
        padding: 10px 20px;
        font-size: 14px;
        height: 65px;
    }
    
    .wp-goto-register-text,
    .wp-goto-login-text {
        font-size: 14px;
    }
}

/* ===============================================
   РЕЖИМ RENT - Поиск аренды машин
   =============================================== */

/* Контейнер поиска */
.wp-goto-rental-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

/* Поля поиска */
.wp-goto-search-field {
    display: flex;
    flex-direction: column;
}

.wp-goto-pickup-field {
    flex: 1;
    min-width: 0;
}

.wp-goto-dates-field {
    flex: 1;
    min-width: 0;
}

.wp-goto-search-button-field {
    flex-shrink: 0;
}

/* Поля ввода */
.wp-goto-search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 56px;
    text-decoration: none;
    color: inherit;
}

.wp-goto-search-input:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

.wp-goto-search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #007bff;
}

.wp-goto-search-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка поиска */
.wp-goto-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: #ffffff;
    border: none;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    width: 56px;
    height: 56px;
}

.wp-goto-search-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.wp-goto-search-button:active {
    transform: translateY(0);
}

.wp-goto-search-btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Виджет машин */
.wp-goto-car-widget {
    margin: 40px 0;
    padding: 0;
}

.wp-goto-car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
}

.wp-goto-car-card {
    background: var(--white, #ffffff);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.wp-goto-car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.wp-goto-car-card:focus {
    outline: 2px solid var(--primary-color, #007bff);
    outline-offset: 2px;
}

.wp-goto-car-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.wp-goto-car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: 0;
    box-shadow: none;
}

.wp-goto-car-card:hover .wp-goto-car-image img {
    transform: scale(1.05);
}

.wp-goto-car-content {
    padding: 16px 20px;
}

.wp-goto-car-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #333);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка Load More */
.wp-goto-car-load-more {
    margin-top: 30px;
    text-align: center;
}

.wp-goto-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #28a745;
    color: white;
    border: none;
    padding: 18px;
    font-size: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    width: 60px;
    height: 60px;
    text-decoration: none;
}

.wp-goto-load-more-btn:hover {
    background: #218838;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.wp-goto-load-more-btn:active {
    transform: translateY(0) scale(1);
}

.wp-goto-load-more-btn:focus {
    outline: 2px solid #28a745;
    outline-offset: 4px;
}

.wp-goto-load-more-icon {
    width: 28px;
    height: 28px;
}


/* Адаптивные стили для режима rent */
@media (max-width: 768px) {
    /* Поиск аренды - вертикальное расположение на мобильных */
    .wp-goto-rental-search {
        flex-direction: column;
        gap: 16px;
        margin: 20px auto 30px;
        padding: 0 15px;
    }
    
    .wp-goto-pickup-field,
    .wp-goto-dates-field,
    .wp-goto-search-button-field {
        width: 100%;
    }
    
    .wp-goto-search-input {
        padding: 12px 16px;
        height: 52px;
    }
    
    .wp-goto-search-value {
        font-size: 15px;
    }
    
    .wp-goto-search-button {
        width: 100%;
        height: 52px;
    }
    
    /* Карточки машин */
    .wp-goto-car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .wp-goto-car-image {
        height: 160px;
        padding: 8px;
    }
    
    .wp-goto-car-content {
        padding: 12px 16px;
    }
    
    .wp-goto-car-title {
        font-size: 0.9rem;
    }
    
    .wp-goto-load-more-btn {
        width: 56px;
        height: 56px;
        padding: 16px;
    }
    
    .wp-goto-load-more-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    /* Поиск аренды на маленьких экранах */
    .wp-goto-rental-search {
        margin: 15px auto 25px;
        padding: 0 10px;
        gap: 14px;
    }
    
    .wp-goto-search-label {
        font-size: 13px;
    }
    
    .wp-goto-search-input {
        padding: 10px 14px;
        height: 48px;
    }
    
    .wp-goto-search-icon {
        width: 18px;
        height: 18px;
    }
    
    .wp-goto-search-value {
        font-size: 14px;
    }
    
    .wp-goto-search-button {
        width: 100%;
        height: 48px;
    }
    
    .wp-goto-search-btn-icon {
        width: 22px;
        height: 22px;
    }
    
    /* Карточки машин */
    .wp-goto-car-widget {
        margin: 30px 0;
    }
    
    .wp-goto-car-grid {
        gap: 12px;
    }
    
    .wp-goto-car-image {
        height: 140px;
        padding: 6px;
    }
    
    .wp-goto-load-more-btn {
        width: 52px;
        height: 52px;
        padding: 14px;
    }
    
    .wp-goto-load-more-icon {
        width: 22px;
        height: 22px;
    }
}

