/* assets/css/popup.css - Portrait Layout - Mobile Optimized */

/* ===== BASE STYLES ===== */
#popup-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* ===== POPUP CONTAINER ===== */
#popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
}

#popup-wrapper.show {
    opacity: 1;
}

#popup-wrapper .popup-container {
    width: 100%;
    max-width: 360px;
    min-height: 520px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #333;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

/* ===== CLOSE BUTTON ===== */
#popup-wrapper .close-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    flex-shrink: 0;
}

#popup-wrapper .close-timer {
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#popup-wrapper .close-timer:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== SINGLE SPONSOR CONTAINER ===== */
#popup-wrapper .sponsor-single {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 0;
    margin: 10px 0;
    width: 100%;
    height: 100%;
}

#popup-wrapper .sponsor-single-slot {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

#popup-wrapper .sponsor-single-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #ddd;
}

#popup-wrapper .sponsor-image-container {
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#popup-wrapper .sponsor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

#popup-wrapper .sponsor-text-content {
    width: 100%;
    height: 30%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #eee;
}

/* Sponsor Content Styles */
#popup-wrapper .sponsor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-align: center;
}

#popup-wrapper .sponsor-desc {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.4;
    max-width: 100%;
}

/* Empty Slot Styles */
#popup-wrapper .empty-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 30px;
}

#popup-wrapper .empty-slot-text {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
}

#popup-wrapper .slot-tag {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
    font-family: monospace;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    line-height: 1.3;
}

#popup-wrapper .contact-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#popup-wrapper .contact-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== FOOTER STYLES ===== */
#popup-wrapper .popup-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 0.85rem;
    flex-shrink: 0;
}

#popup-wrapper .footer-text {
    margin-bottom: 0;
    font-weight: 500;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
/* Mobile First Approach */
@media (max-width: 480px) {
    #popup-wrapper {
        padding: 10px;
    }
    
    #popup-wrapper .popup-container {
        max-width: 100%;
        min-height: 480px;
        padding: 15px;
        border-radius: 14px;
    }
    
    #popup-wrapper .sponsor-single-slot {
        min-height: 340px;
    }
    
    #popup-wrapper .sponsor-image-container {
        height: 65%;
        padding: 15px;
    }
    
    #popup-wrapper .sponsor-text-content {
        height: 35%;
        padding: 12px 15px;
    }
    
    #popup-wrapper .empty-slot {
        padding: 20px;
    }
    
    #popup-wrapper .empty-slot-text {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    #popup-wrapper .slot-tag {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    #popup-wrapper .contact-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    #popup-wrapper .close-timer {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    #popup-wrapper .popup-container {
        min-height: 440px;
        padding: 12px;
    }
    
    #popup-wrapper .sponsor-single-slot {
        min-height: 300px;
    }
    
    #popup-wrapper .sponsor-image-container {
        padding: 12px;
    }
    
    #popup-wrapper .sponsor-text-content {
        padding: 10px 12px;
    }
    
    #popup-wrapper .sponsor-name {
        font-size: 1.1rem;
    }
    
    #popup-wrapper .sponsor-desc {
        font-size: 0.85rem;
    }
    
    #popup-wrapper .empty-slot {
        padding: 15px;
    }
    
    #popup-wrapper .empty-slot-text {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    #popup-wrapper .contact-btn {
        padding: 9px 18px;
        font-size: 0.9rem;
    }
    
    #popup-wrapper .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    #popup-wrapper .popup-container {
        min-height: 420px;
        padding: 10px;
    }
    
    #popup-wrapper .sponsor-single-slot {
        min-height: 280px;
    }
    
    #popup-wrapper .sponsor-image-container {
        height: 60%;
        padding: 10px;
    }
    
    #popup-wrapper .sponsor-text-content {
        height: 40%;
        padding: 8px 10px;
    }
    
    #popup-wrapper .empty-slot-text {
        font-size: 0.95rem;
    }
    
    #popup-wrapper .contact-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Tablet and Desktop */
@media (min-width: 481px) and (max-width: 768px) {
    #popup-wrapper .popup-container {
        max-width: 400px;
        min-height: 560px;
    }
    
    #popup-wrapper .sponsor-single-slot {
        min-height: 420px;
    }
}

@media (min-width: 769px) {
    #popup-wrapper .popup-container {
        max-width: 380px;
    }
}