/* ============================================================
   Document Embed Pro — Frontend Styles
   Versiyon: 3.0.0
   ============================================================ */

/* Wrapper */
.dep-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

/* Sabit yükseklik iframe */
.dep-wrapper > iframe {
    border: none;
    display: block;
    max-width: 100%;
}

/* Responsive oran sarmalayıcı */
.dep-ratio-wrap {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}
.dep-ratio-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Hata mesajı */
.dep-error {
    color: #c0392b;
    padding: 10px 14px;
    border-left: 4px solid #c0392b;
    background: #fdf3f2;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    margin: 0;
}

/* iframe yükleniyor / hata katmanı */
.dep-iframe-shell {
    position: relative;
}
.dep-iframe-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    font-size: 14px;
    color: #777;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 1;
}
.dep-iframe-overlay.dep-loaded {
    opacity: 0;
}
.dep-iframe-overlay.dep-failed {
    color: #c0392b;
    background: #fdf3f2;
    pointer-events: auto;
}

/* Buton sarmalayıcı */
.dep-btn-wrap {
    margin-top: 10px;
    text-align: center;
}

/* Buton — renk/radius PHP'den CSS değişkeni olarak gelir */
.dep-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--dep-btn-bg, #0073aa);
    color: var(--dep-btn-fg, #ffffff);
    border-radius: var(--dep-btn-radius, 4px);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity .15s ease, transform .1s ease;
    cursor: pointer;
    border: none;
}
.dep-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
    color: var(--dep-btn-fg, #ffffff);
    text-decoration: none;
}
.dep-btn:active {
    transform: translateY(0);
    opacity: 1;
}
