/**
 * SlydeGiftShop Module Styles
 * 
 * @author    Slyde ApS <contact@slyde.dk>
 * @copyright 2024 Slyde ApS - All rights reserved
 * @license   Proprietary - All rights reserved
 */

/* Gift selected message */
.gift-selected-message {
    margin: 0;
    text-align: center;
    font-weight: 500;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

/* Gift shop error message styling */
.slyde-giftshop-error {
    background-color: #d9534f;
    color: #ffffff;
    font-size: 1.125rem;
    padding: 1.25rem;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99991;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    max-width: 90%;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Order overview styles */
.slyde-giftshop-stats {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    width: 100%;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.slyde-giftshop-stats p {
    margin: 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    flex: 1;
    text-align: center;
}

.slyde-giftshop-stats strong {
    display: block;
    font-size: 1.5rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Accordion improvements */
.slyde-giftshop-accordion .card {
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    overflow: hidden;
}

.slyde-giftshop-accordion .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.slyde-giftshop-accordion .btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slyde-giftshop-accordion .btn:hover {
    background-color: #e9ecef;
}

.slyde-giftshop-accordion .btn:focus {
    box-shadow: none;
}

.slyde-giftshop-accordion .fa {
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .slyde-giftshop-stats {
        flex-direction: column;
    }
    
    .slyde-giftshop-stats p {
        margin-bottom: 0.5rem;
    }
}

/* Podium styling */
.podium-container {
    margin: 2rem 0;
    padding: 2rem 0;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin: 0 auto;
    max-width: 600px;
}

.podium-place {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 180px;
}

.product-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.product-image {
    width: 100%;
    max-width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.podium-place h4 {
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.podium-place.first h4 {
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.podium-place.second h4 {
    color: #C0C0C0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.podium-place.third h4 {
    color: #CD7F32;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-name {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    font-weight: 500;
    line-height: 1.2;
    min-height: 2.4rem;
}

.product-quantity {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    margin: 0.3rem 0;
}

.product-price {
    font-size: 1rem;
    color: #666;
    margin: 0.3rem 0;
}

.podium-bar {
    width: 100%;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.first-bar {
    height: 150px;
    background: linear-gradient(to top, #FFD700, #FFF8DC);
    border: 2px solid #FFD700;
}

.second-bar {
    height: 100px;
    background: linear-gradient(to top, #C0C0C0, #F5F5F5);
    border: 2px solid #C0C0C0;
}

.third-bar {
    height: 70px;
    background: linear-gradient(to top, #CD7F32, #FFF5EE);
    border: 2px solid #CD7F32;
}

/* Responsive podium */
@media (max-width: 576px) {
    .podium {
        gap: 0.5rem;
    }
    
    .podium-place {
        max-width: 120px;
    }
    
    .product-image {
        max-width: 80px;
        height: 80px;
    }
    
    .product-info {
        padding: 0.5rem;
    }
    
    .podium-place h4 {
        font-size: 1.5rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        min-height: 2rem;
    }
    
    .product-quantity,
    .product-price {
        font-size: 0.9rem;
    }
    
    .first-bar {
        height: 120px;
    }
    
    .second-bar {
        height: 80px;
    }
    
    .third-bar {
        height: 50px;
    }
}

/* Hide list view option in gift categories */
body.slydegiftshop-enabled .products-list-view-btn,
body.slydegiftshop-enabled .elementor-products-grid .list,
body.slydegiftshop-enabled [data-action="show-product-list-view"],
body.slydegiftshop-enabled .products-selection .list,
body.slydegiftshop-enabled [data-button-action="change-list-view"][data-view="list"],
body.slydegiftshop-enabled .view-switcher a[data-view="list"] {
    display: none !important;
}

/* SlydeGiftShop Login Form Styling */
.slydegiftshop-login-block {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slydegiftshop-login-block h3 {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

.slydegiftshop-login-block .form-group {
    margin-bottom: 20px;
}

.slydegiftshop-login-block label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.slydegiftshop-login-block .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s;
}

.slydegiftshop-login-block .form-control:focus {
    outline: none;
    border-color: #9bad7f;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.slydegiftshop-login-block .btn-primary {
    background: #9bad7f;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.slydegiftshop-login-block .btn-primary:hover {
    background: #acbe8f;
}

.slydegiftshop-login-block .forgot-password {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.slydegiftshop-login-block .forgot-password a {
    color: #9bad7f;
    text-decoration: none;
    font-size: 14px;
}

.slydegiftshop-login-block .forgot-password a:hover {
    text-decoration: underline;
}

/* Login widget styles */
.slydegiftshop-login-widget {
    display: inline-block;
}

/* Company category link styles */
.slydegiftshop-category-link {
    display: inline-block;
    margin: 0 10px;
}

.slydegiftshop-category-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slydegiftshop-category-link .btn i {
    font-size: 20px;
}

/* Header integration */
#_desktop_top_menu .slydegiftshop-category-link,
.header-nav .slydegiftshop-category-link {
    margin: 0 15px;
    vertical-align: middle;
}

.slydegiftshop-login-widget .login-form-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slydegiftshop-login-widget .form-fields {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.slydegiftshop-login-widget .form-group {
    margin: 0;
}

.slydegiftshop-login-widget input {
    width: 150px;
    height: 34px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.slydegiftshop-login-widget button {
    height: 34px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .slydegiftshop-login-widget .login-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .slydegiftshop-login-widget .form-fields {
        flex-direction: column;
        width: 100%;
    }
    
    .slydegiftshop-login-widget input,
    .slydegiftshop-login-widget button {
        width: 100%;
    }
}
