/**
 * Frontend Styles for Perfume Chart Plugin
 */

.perfume-details-container {
    padding: 20px 0;
    direction: rtl;
}

/* Grid Layout */
.perfume-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Full width when only one section exists */
.perfume-details-grid.only-notes,
.perfume-details-grid.only-accords {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* Card Styles */
.perfume-notes-card,
.perfume-accord-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Section Titles */
.note-level-title,
.accord-section-title {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Perfume Notes Section */
.perfume-notes-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.perfume-note-level {
    padding: 0;
}

.note-level-title {
    margin-bottom: 20px;
}

/* Perfumes Grid */
.perfumes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.perfume-single-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    gap: 10px;
    min-height: 40px;
    flex-direction: row-reverse;
    border-radius: 8px;
    background-color: #fff;
    cursor: default;
    transition: all 0.1s;
}

.perfume-single-item:hover {
    background-color: #f9f9f9;
}

.perfume-title {
    font-size: 14px;
    color: #444;
    font-weight: 400;
    line-height: 1.4;
    text-align: right;
    flex: 1;
}

.perfume-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.perfume-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Accord Section */
.accord-section-title {
    margin-bottom: 30px;
}

.accord-chart {
    padding: 0;
}

.accord-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accord-bar-item {
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s ease;
    cursor: default;
    max-width: 100%;
}

.accord-bar-item:hover {
    transform: translateX(-3px);
    opacity: 0.9;
}

.accord-bar-text {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-align: right;
    width: 100%;
}

/* No Data Message */
.no-perfume-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .perfume-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {

    .perfume-notes-card,
    .perfume-accord-card {
        padding: 20px;
        border-radius: 15px;
    }

    .perfumes-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .note-level-title,
    .accord-section-title {
        font-size: 16px;
    }

    .perfume-title {
        font-size: 13px;
    }

    .accord-bar-item {
        height: 40px;
        padding: 0 15px;
    }

    .accord-bar-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .perfume-notes-card,
    .perfume-accord-card {
        padding: 15px;
        border-radius: 12px;
    }

    .note-level-title,
    .accord-section-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .perfumes-grid {
        gap: 8px;
    }

    .perfume-single-item {
        min-height: 35px;
    }

    .perfume-title {
        font-size: 12px;
    }

    .perfume-image {
        width: 35px;
        height: 35px;
    }

    .accord-bar-item {
        height: 38px;
        padding: 0 12px;
    }

    .accord-bar-text {
        font-size: 13px;
    }
}

/* Animation for tab opening */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.perfume-details-container {
    animation: fadeIn 0.3s ease;
}

/* Elementor Widget Specific Styles */
.perfume-notes-widget-wrapper,
.perfume-accord-widget-wrapper {
    direction: rtl;
}

.perfume-notes-widget-wrapper .perfume-notes-card,
.perfume-accord-widget-wrapper .perfume-accord-card {
    max-width: 100%;
}

/* Widget Section Title */
.perfume-widget-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

/* Elementor Editor Alert Styles */
.elementor-alert {
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.elementor-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.elementor-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}