/**
 * Loveroom Extras Display Styles - Elegant Horizontal Layout
 * Version: 2.0.0
 */

/* ========================================
   COMMON STYLES
   ======================================== */

.loveroom-extras-display {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.extras-header {
    text-align: center;
    margin-bottom: 40px;
}

.extras-title {
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.extras-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-weight: 300;
}

.no-extras-found {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   HORIZONTAL LAYOUT (NEW)
   ======================================== */

.extras-horizontal-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.extra-horizontal-item {
    display: flex;
    flex-direction: row;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    border-radius: 14px;
    overflow: hidden;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.extra-horizontal-item:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.12);
}

/* Image Section (Left - 35%) */
.extra-image-section {
    position: relative;
    width: 35%;
    min-height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.extra-image-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.extra-horizontal-item:hover .extra-image-photo {
    transform: scale(1.08);
}

.extra-emoji-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.extra-image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(15, 15, 15, 0.2) 100%
    );
    pointer-events: none;
}

/* Icon Background (when no image) */
.extra-icon-background {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-icon-background.extra-no-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.extra-icon-large,
.extra-placeholder-icon {
    font-size: 64px;
    opacity: 0.9;
}

/* Divider Line */
.extra-divider {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(212, 175, 55, 0.15) 80%,
        transparent 100%
    );
    flex-shrink: 0;
}

/* Content Section (Right - 65%) */
.extra-content-section {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.extra-name {
    font-size: 20px;
    font-weight: 600;
    color: #CFAE70 !important;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.extra-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0 0 15px;
    flex: 1;
}

.extra-price-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.extra-price {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.extra-price .woocommerce-Price-amount {
    color: #ffffff;
}

/* ========================================
   GRID STYLE
   ======================================== */

.loveroom-extras-grid .extras-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.extra-grid-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.extra-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.extra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.extra-grid-item:hover .extra-image img {
    transform: scale(1.1);
}

.extra-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.extra-icon-only {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-icon-large {
    font-size: 80px;
}

.extra-no-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.extra-placeholder-icon {
    font-size: 80px;
    opacity: 0.8;
}

.extra-content {
    padding: 25px;
}

.extra-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px;
}

.extra-description {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 20px;
}

.extra-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.extra-price {
    font-size: 24px;
    font-weight: 700;
    color: #4CAF50;
}

/* ========================================
   CARDS STYLE
   ======================================== */

.loveroom-extras-cards .extras-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.extra-card {
    perspective: 1000px;
    height: 450px;
}

.extra-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.extra-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.extra-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.extra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.extra-card-overlay .extra-icon {
    font-size: 48px;
}

.extra-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.extra-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.extra-card-price {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    margin: 0 0 15px;
}

.extra-card-description {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   LIST STYLE
   ======================================== */

.loveroom-extras-list .extras-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.extra-list-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.extra-list-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateX(8px);
}

.extra-list-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.extra-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.extra-list-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
}

.extra-list-content {
    flex: 1;
}

.extra-list-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.extra-list-icon-inline {
    font-size: 32px;
}

.extra-list-description {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.extra-list-price {
    flex-shrink: 0;
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Force contain on mobile for proper image display */
@media (max-width: 768px) {
    .extra-image-photo {
        height: auto !important;
        max-height: 100%;
        object-fit: contain !important;
        object-position: center !important;
    }
}

@media (max-width: 768px) {
    .loveroom-extras-display {
        padding: 15px;
        margin: 20px auto;
        max-width: 600px;
    }

    .extras-title {
        font-size: 26px;
    }

    .extras-subtitle {
        font-size: 14px;
    }

    /* Horizontal Layout - Switch to Vertical on Tablet */
    .extra-horizontal-item {
        flex-direction: column;
    }

    .extra-image-section {
        width: 100%;
        height: auto !important;
        min-height: 200px;
        max-height: none !important;
        background-color: rgba(15, 15, 15, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loveroom-extras-horizontal .extra-image-section .extra-image-photo {
        height: auto !important;
        max-height: 100%;
        object-fit: contain !important;
        object-position: center !important;
    }

    .extra-icon-background {
        min-height: 180px;
    }

    .extra-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(212, 175, 55, 0.15) 20%,
            rgba(212, 175, 55, 0.15) 80%,
            transparent 100%
        );
    }

    .extra-image-gradient {
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(15, 15, 15, 0.2) 100%
        );
    }

    .extra-content-section {
        padding: 20px 25px;
    }

    .extra-emoji-overlay {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .extra-name {
        font-size: 18px;
    }

    .extra-description {
        font-size: 13px;
    }

    .extra-price {
        font-size: 20px;
    }

    /* Grid */
    .loveroom-extras-grid .extras-grid-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .extra-image,
    .extra-icon-only,
    .extra-no-image {
        height: 200px;
    }

    .extra-content {
        padding: 20px;
    }

    /* Cards */
    .loveroom-extras-cards .extras-cards-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .extra-card {
        height: auto;
    }

    .extra-card-image {
        height: 200px;
    }

    .extra-card-body {
        padding: 20px;
    }

    .extra-card-title {
        font-size: 20px;
    }

    .extra-card-price {
        font-size: 24px;
    }

    /* List */
    .extra-list-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .extra-list-image,
    .extra-list-icon {
        width: 100%;
        height: 180px;
    }

    .extra-list-title {
        justify-content: center;
        font-size: 20px;
    }

    .extra-list-price {
        font-size: 24px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .loveroom-extras-display {
        max-width: 100%;
    }

    .extras-title {
        font-size: 24px;
    }

    .extras-subtitle {
        font-size: 13px;
    }

    /* Horizontal Layout Mobile */
    .extra-horizontal-item {
        border-radius: 12px;
    }

    .extra-image-section {
        height: auto !important;
        min-height: 180px;
        max-height: none !important;
        background-color: rgba(15, 15, 15, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .loveroom-extras-horizontal .extra-image-section .extra-image-photo {
        height: auto !important;
        max-height: 100%;
        object-fit: contain !important;
        object-position: center !important;
    }

    .extra-icon-background {
        min-height: 150px;
    }

    .extra-content-section {
        padding: 18px 20px;
    }

    .extra-emoji-overlay {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .extra-name {
        font-size: 17px;
    }

    .extra-description {
        font-size: 12px;
    }

    .extra-price {
        font-size: 18px;
    }

    .extra-icon-large,
    .extra-placeholder-icon {
        font-size: 54px;
    }

    .extra-list-image,
    .extra-list-icon {
        height: 150px;
    }
}
