/**
 * Stili per la pagina singola del progetto
 *
 * @package    Smart_Retail_Award
 * @subpackage Smart_Retail_Award/public/css
 * @since      1.0.0
 */

/* === CONTAINER PRINCIPALE === */
.sra-single-project-page {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.sra-single-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* === GALLERY SECTION === */
.sra-single-gallery-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
}

.sra-single-gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.sra-single-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sra-single-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sra-single-gallery-slide.active {
    opacity: 1;
}

.sra-single-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    max-width: 100%;
    max-height: 100%;
}

.sra-single-no-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* === CONTROLLI GALLERY === */
.sra-single-gallery-prev,
.sra-single-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s;
}

.sra-single-gallery-prev:hover,
.sra-single-gallery-next:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #333;
}

.sra-single-gallery-prev {
    left: 15px;
}

.sra-single-gallery-next {
    right: 15px;
}

/* === INDICATORI GALLERY === */
.sra-single-gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sra-single-gallery-indicator {
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s;
}

.sra-single-gallery-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* === OVERLAY ELEMENTS === */
.sra-single-categorie-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sra-single-categoria-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sra-single-categoria-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sra-single-year-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #9C1814;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sra-single-premi-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sra-single-premio-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sra-single-premio-icon img {
    width: 100%;
    height: 100%;
}

.sra-single-winner-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.sra-single-winner-icon {
    font-size: 30px;
}

/* === DETTAGLI PROGETTO === */
.sra-single-project-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sra-single-project-title {
    font-size: 3rem;
    font-weight: 700;
    color: #9c1814;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* === MOTIVAZIONI INLINE === */
.sra-single-project-awards-summary {
    margin: 0 0 25px 0;
    padding: 0;
}

.sra-single-award-motivation-inline {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.sra-single-award-motivation-inline:last-child {
    margin-bottom: 0;
}

.sra-single-award-motivation-inline strong {
    color: #9C1814;
    font-weight: 600;
    margin-right: 8px;
}

/* === META PROGETTO === */
.sra-single-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.sra-single-project-meta-content {
    flex: 1;
}

.sra-single-project-company {
    font-size: 2.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sra-single-company-divider {
    margin: 0 8px;
    color: #999;
}

.sra-single-project-contact {
    font-size: 1.95rem;
    color: #666;
    margin-bottom: 8px;
}

.sra-single-contact-email {
    color: #9C1814 !important;
    text-decoration: none;
    font-weight: 500;
}

.sra-single-contact-email:hover {
    text-decoration: underline;
}

.sra-single-project-categories {
    font-size: 1.9rem;
    color: #777;
}

/* === LINK ESTERNO === */
.sra-single-project-external-link {
    flex-shrink: 0;
    margin-left: 20px;
}

.sra-single-external-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #9C1814;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.sra-single-external-link-button:hover {
    background-color: #7a1310;
    text-decoration: none;
}

.sra-single-external-icon {
    font-size: 16px;
}

/* === SEZIONE PREMI === */
.sra-single-awards-container {
    margin-bottom: 30px;
}

.sra-single-awards-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #9C1814;
    padding-bottom: 8px;
}

.sra-single-awards-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sra-single-award-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.sra-single-award-item:last-child {
    margin-bottom: 0;
}

.sra-single-award-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.sra-single-award-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.sra-single-award-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sra-single-award-icon {
    flex-shrink: 0;
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sra-single-award-info {
    flex: 1;
}

.sra-single-award-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9C1814;
    margin: 0 0 8px 0;
}

.sra-single-award-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* === CONTENUTO PROGETTO === */
.sra-single-project-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.sra-single-project-content p {
    margin-bottom: 15px;
}

.sra-single-project-content p:last-child {
    margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .sra-single-gallery-container {
        height: 80vh;
        min-height: 400px;
    }

    .sra-single-project-details {
        padding: 30px 15px;
    }

    .sra-single-project-title {
        font-size: 1.8rem;
    }

    .sra-single-project-meta {
        flex-direction: column;
        gap: 15px;
    }

    .sra-single-project-external-link {
        margin-left: 0;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .sra-single-gallery-container {
        height: 80vh;
        min-height: 300px;
    }

    .sra-single-project-details {
        padding: 25px 15px;
    }

    .sra-single-project-title {
        font-size: 1.6rem;
    }

    .sra-single-categoria-icon,
    .sra-single-premio-icon {
        width: 50px;
        height: 50px;
    }

    .sra-single-categorie-icons,
    .sra-single-premi-icons {
        top: 10px;
    }

    .sra-single-categorie-icons {
        right: 10px;
    }

    .sra-single-premi-icons {
        left: 10px;
    }

    .sra-single-year-badge {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .sra-single-gallery-container {
        height: 80vh;
        min-height: 250px;
    }

    .sra-single-project-details {
        padding: 20px 10px;
    }

    .sra-single-project-title {
        font-size: 1.4rem;
    }

    .sra-single-categoria-icon,
    .sra-single-premio-icon {
        width: 40px;
        height: 40px;
    }

    .sra-single-award-header {
        gap: 10px;
    }

    .sra-single-award-image,
    .sra-single-award-icon {
        width: 50px;
        height: 50px;
    }

    .sra-single-award-icon {
        font-size: 30px;
    }
}