/* IOA Ozone in the Environment Widget Styles */
/* Wrapper for versioning and editor targeting */
.ioa-ozone-env-2025 {
    position: relative;
    width: 100%;
}

.ea3g-atmosphere-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ea3g-atmosphere-container {
    /* Default CSS Variables - These will be overridden by Elementor controls */
    --color-surface: #ffffff;
    --color-surface-alt: #f3f4f6;
    --color-text: #111827;
    --color-text-secondary: #374151;
    --color-primary: #1e3a8a;
    --color-primary-dark: #1e40af;
    --color-border: #e5e7eb;
    --color-strato: #0284c7;
    --color-strato-light: rgba(2, 132, 199, 0.1);
    --color-tropo: #10b981;
    --color-tropo-light: rgba(16, 185, 129, 0.1);
    
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
    position: relative;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    background-color: var(--color-surface); /* Added default base */
}

/* Base Typography - Elementor will override specifics */
.ea3g-atmosphere-container h3,
.ea3g-atmosphere-container .ea3g-links-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.ea3g-atmosphere-container p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.ea3g-atmosphere-container p:last-child {
    margin-bottom: 0;
}
.ea3g-lede-paragraph {
    max-width: 720px;
    font-size: 18px;
}

/* Atmosphere Section */
.ea3g-atmosphere-section {
    position: relative;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.03), #ffffff);
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 3.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ea3g-atmosphere-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), rgba(255,255,255,0));
    opacity: 0.7;
}

.ea3g-atmosphere-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cpath d='M0,0 C100,15 300,15 400,0 L400,50 C300,65 100,65 0,50 Z' fill='%231e3a8a'/%3E%3Cpath d='M0,50 C100,65 300,65 400,50 L400,100 C300,115 100,115 0,100 Z' fill='%231e3a8a'/%3E%3Cpath d='M0,100 C100,115 300,115 400,100 L400,150 C300,165 100,165 0,150 Z' fill='%231e3a8a'/%3E%3Cpath d='M0,150 C100,165 300,165 400,150 L400,200 C300,215 100,215 0,200 Z' fill='%231e3a8a'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
}

.ea3g-atmosphere-content {
    position: relative;
    z-index: 1;
}

.ea3g-structure-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
}

.ea3g-structure-label::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.ea3g-atmosphere-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    border: 1px solid rgba(30, 58, 138, 0.08);
}

.ea3g-atmosphere-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    fill: var(--color-primary);
}

/* Content Grid & Cards */
.ea3g-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ea3g-content-card {
    position: relative;
    padding: 2rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.ea3g-content-card h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

.ea3g-highlight-text {
    position: relative;
    display: inline;
    color: var(--color-primary);
    font-weight: 500;
}

/* Layer Tags */
.ea3g-layer-tag {
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    font-size: 12px;
}
.ea3g-strato-tag {
    background-color: var(--color-strato-light);
    color: var(--color-strato);
}
.ea3g-tropo-tag {
    background-color: var(--color-tropo-light);
    color: var(--color-tropo);
}

/* Links List */
.ea3g-links-list {
    list-style: none;
    padding-left: 0;
    margin-top: auto; /* Pushes links to bottom if flex column */
    padding-top: 1.5rem;
}

.ea3g-links-list li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 20px;
}
.ea3g-links-list li:last-child {
    margin-bottom: 0;
}

.ea3g-links-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 0.8rem;
    transform: translateY(2px);
}

.ea3g-atmosphere-container a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
.ea3g-atmosphere-container a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* =========================================
TELEPORT SLOTS (Gold Standard Implementation)
========================================= */
.ioa-teleport-slot {
    min-height: 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
    width: 100%;
}

.ioa-teleport-slot.has-content {
    margin-bottom: 2rem;
    animation: ioa-fade-in 0.5s ease;
}

/* Editor Visuals - Visible only in Elementor Editor (.is-editor-mode added via PHP) */
.is-editor-mode .ioa-teleport-slot {
    min-height: 40px;
    border: 1px dashed rgba(30, 58, 138, 0.3); /* Using Brand Blue */
    background: rgba(30, 58, 138, 0.05);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.is-editor-mode .ioa-teleport-slot::before {
    content: attr(data-label);
    font-size: 11px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes ioa-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .ea3g-content-grid { grid-template-columns: 1fr; }
    .ea3g-atmosphere-badge { position: static; margin-top: 1.5rem; display: inline-flex; }
}
@media (max-width: 480px) {
    .ea3g-layer-tag { display: block; margin-left: 0; margin-top: 5px; width: fit-content; }
}