/* ============================================================================
   GUARDIANS WATCH - MILK CARTON MODAL STYLES
   Extracted from page.js inline styles for better maintainability
   ============================================================================ */

/* Milk Carton Modal Container */
#milk-carton-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

/* Main Modal Content */
.milk-carton-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
.milk-carton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.milk-carton-title {
    margin: 0;
    color: #d32f2f;
    font-size: 24px;
    font-weight: bold;
}

.milk-carton-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.milk-carton-close-btn:hover {
    color: #333;
}

/* Main Content Layout */
.milk-carton-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Left Column - Photo/Poster */
.milk-carton-photo-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.milk-carton-photo-section {
    margin-bottom: 15px;
}

.milk-carton-photo-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.milk-carton-photo {
    max-width: 100%;
    max-height: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.milk-carton-no-photo {
    padding: 40px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

.milk-carton-no-photo-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.milk-carton-poster-iframe {
    width: 100%;
    height: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.milk-carton-poster-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

/* Right Column - Information */
.milk-carton-info-column {
    flex: 1;
    min-width: 250px;
}

.milk-carton-case-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.milk-carton-case-title {
    margin-top: 0;
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 18px;
}

.milk-carton-case-info p {
    margin: 8px 0;
    line-height: 1.4;
}

/* Call to Action Section */
.milk-carton-cta {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.milk-carton-cta-title {
    margin-top: 0;
    color: #856404;
    font-size: 16px;
}

.milk-carton-cta p, .milk-carton-cta ul {
    margin: 10px 0;
    color: #856404;
}

.milk-carton-cta ul {
    padding-left: 20px;
}

/* Action Buttons */
.milk-carton-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.milk-carton-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.2s;
}

.milk-carton-btn-primary {
    background: #d32f2f;
    color: white;
}

.milk-carton-btn-primary:hover {
    background: #b71c1c;
}

.milk-carton-btn-success {
    background: #388e3c;
    color: white;
}

.milk-carton-btn-success:hover {
    background: #2e7d32;
}

.milk-carton-btn-secondary {
    background: #666;
    color: white;
}

.milk-carton-btn-secondary:hover {
    background: #555;
}

/* Loading Modal */
.milk-carton-loading, .milk-carton-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    text-align: center;
    max-width: 500px;
}

.milk-carton-loading h3 {
    color: #333;
    margin-bottom: 10px;
}

.milk-carton-success h3 {
    color: #388e3c;
    margin-bottom: 10px;
}

/* Loading Spinner */
.milk-carton-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d32f2f;
    border-radius: 50%;
    animation: milk-carton-spin 1s linear infinite;
    margin: 20px 0;
}

@keyframes milk-carton-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Modal Content */
.milk-carton-success-image {
    max-width: 200px;
    max-height: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .milk-carton-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .milk-carton-photo-column,
    .milk-carton-info-column {
        min-width: auto;
    }
    
    .milk-carton-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .milk-carton-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Print Styles for Milk Carton */
@media print {
    #milk-carton-modal {
        position: static !important;
        background: white !important;
        padding: 0 !important;
    }
    
    .milk-carton-content {
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .milk-carton-close-btn,
    .milk-carton-actions {
        display: none !important;
    }
}
