/**
 * Gemini Content Generator - Popup Styles
 * Industrial Repair Services Branding
 * 
 * @package Gemini_Content_Generator
 * @author Ryan Ely
 */

/* Brand Colors - Industrial Repair Services */
:root {
    --gcg-brand-yellow: #ffcc00;
    --gcg-brand-yellow-hover: #e6b800;
    --gcg-brand-blue: #003366;
    --gcg-brand-blue-hover: #002244;
    --gcg-brand-white: #ffffff;
    --gcg-brand-gray: #4b5563;
    --gcg-brand-light-gray: #f9fafb;
}

/* Popup Overlay */
.gcg-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: gcg-fade-in 0.3s ease;
}

@keyframes gcg-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup Container */
.gcg-popup-container {
    position: relative;
    background: var(--gcg-brand-white);
    border-radius: 0.75rem; /* rounded-xl */
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: gcg-popup-scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid var(--gcg-brand-yellow);
}

@keyframes gcg-popup-scale {
    from {
        transform: scale(0.95) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.gcg-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gcg-brand-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gcg-popup-close:hover {
    background: var(--gcg-brand-yellow);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gcg-popup-close svg {
    width: 20px;
    height: 20px;
    color: var(--gcg-brand-gray);
    transition: color 0.3s ease;
}

.gcg-popup-close:hover svg {
    color: var(--gcg-brand-blue);
}

/* Popup Image */
.gcg-popup-image {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    background: var(--gcg-brand-light-gray);
}

.gcg-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Popup Content */
.gcg-popup-content {
    padding: 32px;
    background: var(--gcg-brand-white);
}

.gcg-popup-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: var(--gcg-brand-blue);
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gcg-popup-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gcg-brand-gray);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gcg-popup-text p {
    margin: 0 0 16px;
}

.gcg-popup-text p:last-child {
    margin-bottom: 0;
}

.gcg-popup-text a:not(.button):not(.btn) {
    color: var(--gcg-brand-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.gcg-popup-text a:not(.button):not(.btn):hover {
    color: var(--gcg-brand-blue-hover);
    text-decoration: underline;
}

.gcg-popup-text ul,
.gcg-popup-text ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.gcg-popup-text li {
    margin-bottom: 8px;
}

/* Highlighted text */
.gcg-popup-text strong,
.gcg-popup-text b {
    color: var(--gcg-brand-blue);
}

.gcg-popup-text .highlight,
.gcg-popup-text .text-yellow {
    color: var(--gcg-brand-yellow);
}

/* Primary Button - Yellow background (matches site CTA style) */
.gcg-popup-text .button,
.gcg-popup-text .btn,
.gcg-popup-text .btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gcg-brand-yellow);
    color: var(--gcg-brand-blue) !important;
    text-decoration: none !important;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 700;
    font-size: 1rem;
    margin-top: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.gcg-popup-text .button:hover,
.gcg-popup-text .btn:hover,
.gcg-popup-text .btn-primary:hover {
    background: var(--gcg-brand-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Secondary Button - Blue background */
.gcg-popup-text .button-secondary,
.gcg-popup-text .btn-secondary,
.gcg-popup-text .btn-blue {
    background: var(--gcg-brand-blue);
    color: var(--gcg-brand-white) !important;
}

.gcg-popup-text .button-secondary:hover,
.gcg-popup-text .btn-secondary:hover,
.gcg-popup-text .btn-blue:hover {
    background: var(--gcg-brand-blue-hover);
}

/* Outline Button */
.gcg-popup-text .button-outline,
.gcg-popup-text .btn-outline {
    background: transparent;
    color: var(--gcg-brand-blue) !important;
    border: 2px solid var(--gcg-brand-blue);
}

.gcg-popup-text .button-outline:hover,
.gcg-popup-text .btn-outline:hover {
    background: var(--gcg-brand-blue);
    color: var(--gcg-brand-white) !important;
}

/* Button Group */
.gcg-popup-text .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 400px) {
    .gcg-popup-text .button-group {
        flex-direction: row;
        justify-content: center;
    }
}

/* Contact Info Style */
.gcg-popup-text .contact-info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: var(--gcg-brand-gray);
}

.gcg-popup-text .contact-info a {
    color: var(--gcg-brand-blue);
    font-weight: 600;
}

.gcg-popup-text .phone-number {
    font-weight: 700;
    color: var(--gcg-brand-blue);
}

/* Responsive */
@media (max-width: 600px) {
    .gcg-popup-overlay {
        padding: 16px;
        align-items: flex-end;
    }
    
    .gcg-popup-container {
        border-radius: 1rem 1rem 0 0;
        max-height: 85vh;
        border-top: 4px solid var(--gcg-brand-yellow);
    }
    
    .gcg-popup-content {
        padding: 24px;
    }
    
    .gcg-popup-title {
        font-size: 1.5rem;
    }
    
    .gcg-popup-text {
        font-size: 0.9375rem;
    }
    
    .gcg-popup-image {
        max-height: 160px;
    }
    
    .gcg-popup-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    .gcg-popup-close svg {
        width: 18px;
        height: 18px;
    }
}
