/**
 * Announcement Popup Styles
 * 
 * @package ChildTheme
 * @subpackage Announcement
 */

/* Additional styles for announcement popup content */

/* Highlight box for special offers */
.childtheme-announcement-text .highlight {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    border: 1px solid #ffeaa7;
}

/* CTA section styling */
.childtheme-announcement-text .cta-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

/* Flash sale badge */
.childtheme-announcement-text .sale-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bonus text styling */
.childtheme-announcement-text .bonus {
    color: #28a745;
    font-weight: 600;
}

/* Enhanced strong tag styling */
.childtheme-announcement-text strong {
    color: #333;
    font-weight: 600;
}

/* Center align h3 headings */
.childtheme-announcement-text h3 {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

/* Italic text in CTA section */
.childtheme-announcement-text .cta-section em {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* Link styles */
.childtheme-announcement-text .announcement-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.childtheme-announcement-text .announcement-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Button-style links */
.childtheme-announcement-text .announcement-button-link {
    display: inline-block;
    background: #28a745;
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.childtheme-announcement-text .announcement-button-link:hover {
    background: #218838;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    text-decoration: none !important;
}

/* Secondary button style */
.childtheme-announcement-text .announcement-button-link.secondary {
    background: #007bff;
}

.childtheme-announcement-text .announcement-button-link.secondary:hover {
    background: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .childtheme-announcement-text .highlight {
        padding: 12px;
        font-size: 14px;
    }
    
    .childtheme-announcement-text .cta-section {
        padding: 15px;
    }
    
    .childtheme-announcement-text .sale-badge {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .childtheme-announcement-text .announcement-button-link {
        font-size: 14px;
        padding: 6px 16px;
    }
}

/* Overlay */
.childtheme-announcement-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Prevent body scroll when popup is active */
body.childtheme-announcement-active {
    overflow: hidden;
}

/* Popup container */
.childtheme-announcement-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    animation: childtheme-announcement-slide-in 0.3s ease-out;
}

/* Animation */
@keyframes childtheme-announcement-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Content wrapper */
.childtheme-announcement-content {
    padding: 40px 30px 30px;
}

/* Text content */
.childtheme-announcement-text {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.childtheme-announcement-text h1,
.childtheme-announcement-text h2,
.childtheme-announcement-text h3,
.childtheme-announcement-text h4,
.childtheme-announcement-text h5,
.childtheme-announcement-text h6 {
    color: #222222;
    margin-top: 0;
    margin-bottom: 15px;
}

.childtheme-announcement-text p {
    margin: 0 0 15px 0;
}

.childtheme-announcement-text p:last-child {
    margin-bottom: 0;
}

/* Actions container */
.childtheme-announcement-actions {
    text-align: center;
}

/* Button */
.childtheme-announcement-button {
    background: #333333;
    color: #ffffff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.childtheme-announcement-button:hover {
    background: #555555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.childtheme-announcement-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive design */
@media (max-width: 768px) {
    .childtheme-announcement-popup {
        max-width: 400px;
        width: 95%;
    }
    
    .childtheme-announcement-content {
        padding: 30px 20px 25px;
    }
    
    .childtheme-announcement-text {
        font-size: 15px;
    }
    
    .childtheme-announcement-button {
        padding: 10px 30px;
        font-size: 15px;
    }
}

/* Admin styles */
.wrap .form-table textarea.large-text {
    width: 100%;
    max-width: 600px;
}