/* Olya Banner Maker - Frontend Styles */

.obm-frontend-banner {
    position: relative;
    background: linear-gradient(135deg, #1d69a5 0%, #00509e 100%);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

/* Error message */
.obm-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

/* Banner Overlay */
.obm-frontend-banner .obm-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    pointer-events: none;
}

/* Format-specific dimensions */
.obm-format-facebook-post {
    aspect-ratio: 1200 / 627;
    max-height: 400px;
}

.obm-format-square {
    aspect-ratio: 1 / 1;
    max-height: 500px;
}

.obm-format-reel {
    aspect-ratio: 1080 / 1920;
    max-height: 600px;
    max-width: 350px;
    margin: 20px auto;
}

.obm-format-fullhd {
    aspect-ratio: 1920 / 1080;
    max-height: 400px;
}

/* Logo Container (Top Left) */
.obm-frontend-banner .obm-logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.obm-frontend-banner .obm-main-logo {
    height: clamp(30px, 5vw, 60px);
    width: auto;
    max-width: 120px;
}

/* QR Code (Top Right) */
.obm-frontend-banner .obm-qr-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.obm-frontend-banner .obm-qr-code {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    border-radius: 4px;
    background: #fff;
    padding: 3px;
    display: block;
}

/* Left Content Area */
.obm-frontend-banner .obm-left-content {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 50%;
}

/* Text Alignment */
.obm-text-left {
    text-align: left;
}

.obm-text-center {
    text-align: center;
}

.obm-text-right {
    text-align: right;
}

/* Title */
.obm-frontend-banner .obm-banner-title {
    color: #fff;
    font-size: clamp(18px, 4vw, 32px);
    font-weight: bold;
    line-height: 1.1;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-family: Arial, sans-serif;
    word-wrap: break-word;
}

/* Agent Details */
.obm-frontend-banner .obm-agent-details {
    margin-top: 15px;
}

.obm-frontend-banner .obm-agent-name {
    color: #fff;
    font-size: clamp(16px, 3vw, 24px);
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
    word-wrap: break-word;
}

.obm-frontend-banner .obm-agent-position {
    color: #fff;
    font-size: clamp(10px, 2vw, 14px);
    margin-bottom: 12px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
    word-wrap: break-word;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.obm-frontend-banner .obm-contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obm-frontend-banner .obm-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.obm-frontend-banner .obm-contact-icon {
    width: clamp(14px, 2.5vw, 20px);
    height: clamp(14px, 2.5vw, 20px);
    flex-shrink: 0;
}

.obm-frontend-banner .obm-contact-item span {
    color: #fff;
    font-size: clamp(10px, 2vw, 14px);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-family: Arial, sans-serif;
    word-wrap: break-word;
}

/* Agent Photo (Right Side) */
.obm-frontend-banner .obm-agent-photo-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.obm-frontend-banner .obm-agent-photo {
    width: clamp(120px, 20vw, 200px);
    height: clamp(150px, 25vw, 250px);
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* CTA Button (Bottom Right) */
.obm-frontend-banner .obm-cta-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.obm-frontend-banner .obm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #00a8e6;
    color: #fff;
    padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 20px);
    border: none;
    border-radius: 25px;
    font-size: clamp(10px, 2vw, 14px);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    font-family: Arial, sans-serif;
    text-decoration: none;
    flex-direction: column;
    text-align: center;
}

.obm-frontend-banner .obm-cta-btn:hover {
    transform: translateY(-1px);
}

.obm-frontend-banner .obm-flag-icon {
    width: clamp(16px, 3vw, 24px);
    height: clamp(16px, 3vw, 24px);
    flex-shrink: 0;
    margin-bottom: 2px;
}

.obm-frontend-banner .obm-website-text {
    font-size: clamp(8px, 1.5vw, 10px);
    margin-top: 2px;
    opacity: 0.9;
}

/* Certifications (Bottom Left) */
.obm-frontend-banner .obm-certifications {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.obm-frontend-banner .obm-certifications img {
    height: clamp(20px, 4vw, 30px);
    width: auto;
    max-width: 60px;
}

/* Social Media */
.obm-frontend-banner .obm-social-media {
    position: absolute;
    bottom: 60px;
    right: 20px;
    z-index: 10;
}

.obm-frontend-banner .obm-social-media img {
    height: clamp(18px, 3vw, 25px);
    width: auto;
    max-width: 100px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .obm-frontend-banner {
        padding: 15px;
    }
    
    .obm-frontend-banner .obm-left-content {
        max-width: 60%;
    }
    
    .obm-frontend-banner .obm-agent-photo {
        width: clamp(80px, 15vw, 120px);
        height: clamp(100px, 18vw, 150px);
    }
    
    .obm-format-reel .obm-left-content {
        max-width: 80%;
        position: static;
        transform: none;
        margin-top: 60px;
        text-align: center;
    }
    
    .obm-format-reel .obm-agent-photo-container {
        position: static;
        transform: none;
        text-align: center;
        margin: 20px 0;
    }
    
    .obm-format-reel .obm-cta-container {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
    
    .obm-format-reel .obm-certifications {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
}

/* Divi compatibility */
.et_pb_module .obm-frontend-banner {
    margin: 0;
}

.et_pb_column .obm-frontend-banner {
    width: 100%;
}

/* WordPress block editor compatibility */
.wp-block .obm-frontend-banner {
    margin: 20px 0;
}

