/**
 * Elementos de Comunicação - Reforma Tributária
 * 
 * Estilos para ribbon e pop-up informativos sobre Reforma Tributária
 * e Portal de Gestão NFS-e.
 * 
 * @package eNotas
 * @version 1.0.0
 */

/* ============================================
   RIBBON - DESKTOP STYLES
   ============================================ */

.ribbon-reforma {
    background: linear-gradient(90deg, #FF7B5B 0%, #FF9F7F 100%);
    padding: 12px 20px;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.ribbon-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ribbon-text {
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.ribbon-cta {
    background: #FFFFFF;
    color: #FF7B5B;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
}

.ribbon-cta:hover,
.ribbon-cta:focus {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.ribbon-cta:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

.ribbon-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* ============================================
   RIBBON - RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .ribbon-reforma {
        padding: 12px 16px;
    }
    
    .ribbon-container {
        gap: 16px;
    }
    
    .ribbon-text {
        font-size: 13px;
    }
    
    .ribbon-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .ribbon-reforma {
        padding: 16px 20px;
    }
    
    .ribbon-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .ribbon-text {
        font-size: 13px;
    }
    
    .ribbon-cta {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
    }
}

/* ============================================
   POP-UP - DESKTOP STYLES
   ============================================ */

.popup-reforma {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-content {
    padding: 24px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6D7275;
    padding: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.popup-close:hover {
    color: #FF7B5B;
    background: rgba(255, 123, 91, 0.1);
}

.popup-close:focus {
    color: #FF7B5B;
    outline: 2px solid #FF7B5B;
    outline-offset: 2px;
}

.popup-close:active {
    background: rgba(255, 123, 91, 0.2);
}

.popup-text {
    font-size: 14px;
    line-height: 1.6;
    color: #6D7275;
    margin: 0 0 20px 0;
    padding-right: 32px;
}

.popup-cta {
    display: inline-block;
    background: #FF7B5B;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-size: 14px;
}

.popup-cta:hover {
    background: #FF6B4B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 123, 91, 0.3);
}

.popup-cta:focus {
    background: #FF6B4B;
    outline: 2px solid #FF7B5B;
    outline-offset: 2px;
}

.popup-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 123, 91, 0.2);
}


/* ============================================
   POP-UP - RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .popup-reforma {
        max-width: 360px;
        bottom: 16px;
        right: 16px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-text {
        font-size: 13px;
        margin-bottom: 16px;
        padding-right: 28px;
    }
    
    .popup-cta {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .popup-reforma {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        animation: slideInUp 0.3s ease-out;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .popup-close {
        top: 12px;
        right: 12px;
    }
    
    .popup-text {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
        padding-right: 28px;
    }
    
    .popup-cta {
        padding: 12px 20px;
        font-size: 14px;
    }
}
