/**
 * All Modal Styles - Consolidated
 * Contains: Content/Lightbox, Donation, Language Switcher, Share, Follow
 */

/* ========================================
   Content / Lightbox Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 10000;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-overlay.active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    max-height: calc(100vh - 80px);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-family: 'Crimson Pro', Georgia, "Times New Roman", system-ui, serif;
    font-size: 1.75rem;
    color: var(--text-dark);
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #333333;
    transform: scale(1.05);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: var(--text-light);
}

.modal-body h4 {
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-dark);
}

.modal-body .loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.modal-body .error {
    text-align: center;
    padding: 2rem;
    color: #e8222a;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 24px 8px;
    }

    .modal-content {
        max-height: calc(100vh - 48px);
        border-radius: 16px;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-close {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

/* ========================================
   Donation Modal
   ======================================== */
.donate-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.donate-modal-overlay.active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

.donate-modal-wrapper {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
}

.donate-modal-content {
    background: #fff;
    padding: 28px 20px 20px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.donate-modal-overlay.active .donate-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.donate-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.donate-modal-close:hover {
    background: #333333;
    transform: scale(1.05);
}

.donate-modal-title {
    font-size: 19px;
    font-weight: 600;
    text-align: center;
    margin: 0;
    color: var(--text-dark);
}

.donate-modal-subtitle {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin: 0 0 1rem;
}

.donate-modal-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.donate-modal-buttons button:nth-child(3):nth-last-child(1) {
    grid-column: 1 / -1;
}

.donate-modal-buttons button {
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.donate-modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.2);
}

.btn-paypal {
    background: #0079c1;
    box-shadow: 0 3px 8px rgba(0,48,135,0.3);
}
.btn-paypal:hover { background: #0099cc; }

.btn-gofundme {
    background: #02a95c;
    box-shadow: 0 3px 8px rgba(59,89,152,0.3);
}
.btn-gofundme:hover { background: #0099cc; }

.btn-stripe {
    background: #6772e5;
    box-shadow: 0 3px 8px rgba(103,114,229,0.3);
}
.btn-stripe:hover { background: #0099cc; }

.btn-bizum {
    background: #00c2a8;
    box-shadow: 0 3px 8px rgba(0,194,168,0.3);
}
.btn-bizum:hover { background: #00a892; }

.btn-default {
    background: #4b5563;
    box-shadow: 0 3px 8px rgba(75,85,99,0.3);
}
.btn-default:hover { background: #374151; }

@media (max-width: 599px) {
    .donate-modal-overlay {
        padding: 24px 8px;
    }

    .donate-modal-buttons {
        grid-template-columns: 1fr;
    }

    .donate-modal-buttons button:nth-child(3):nth-last-child(1) {
        grid-column: auto;
    }
}

/* ========================================
   Language Switcher Modal
   ======================================== */
#ls-overlay,
#ls-overlay * {
    box-sizing: border-box;
}

#ls-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
}

#ls-overlay.active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

#ls-box {
    background: #f3f4f6;
    border-radius: 16px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 22px 26px 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#ls-overlay.active #ls-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#ls-box h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
}

.ls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ls-close-x {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ls-close-x:hover {
    background: #333333;
    transform: scale(1.05);
}

.ls-close-x:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#ls-close {
    text-align: center;
    margin-top: 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #2563eb;
}

#ls-close:hover {
    text-decoration: underline;
}

#ls-close:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    #ls-overlay {
        padding: 24px 8px;
    }

    #ls-box {
        padding: 18px 14px 14px;
    }
}

/* ========================================
   Share Modal
   ======================================== */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.share-modal-overlay.active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

.share-modal-wrapper {
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.share-modal-content {
    background: #fff;
    padding: 28px 24px 24px 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-modal-overlay.active .share-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.share-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.share-modal-close:hover {
    background: #333333;
    transform: scale(1.05);
}

.share-modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: var(--text-dark);
}

.share-modal-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

.share-modal-content .share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-bottom: 0;
}

.share-modal-content .btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
    padding: 0;
    color: white;
}

.share-modal-content .btn-share:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.share-modal-content .btn-share svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-share.facebook { background: #1877f2; }
.btn-share.twitter { background: #000000; }
.btn-share.whatsapp { background: #25d366; }
.btn-share.telegram { background: #26a5e4; }
.btn-share.linkedin { background: #0a66c2; }
.btn-share.messenger { background: #0084ff; }
.btn-share.pinterest { background: #e60023; }
.btn-share.reddit { background: #ff4500; }
.btn-share.email { background: #ea4335; }
.btn-share.copy { background: #6b7280; }
.btn-share.xing { background: #006567; }
.btn-share.wechat { background: #07c160; }
.btn-share.weibo { background: #e6162d; }
.btn-share.line { background: #00c300; }
.btn-share.kakao { background: #fee500; color: #000; }
.btn-share.vk { background: #0077ff; }
.btn-share.wykop { background: #328ece; }
.btn-share.viber { background: #7360f2; }
.btn-share.tumblr { background: #36465d; }

@media (max-width: 500px) {
    .share-modal-overlay {
        padding: 24px 8px;
    }

    .share-modal-content .btn-share {
        width: 40px;
        height: 40px;
    }

    .share-modal-content .btn-share svg {
        width: 20px;
        height: 20px;
    }

    .share-modal-content .share-buttons {
        gap: 0.4rem;
    }
}

/* ========================================
   Follow Modal
   ======================================== */
.follow-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.follow-modal-overlay.active {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

.follow-modal-wrapper {
    width: 90%;
    max-width: 360px;
    margin: 0 auto;
}

.follow-modal-content {
    background: #fff;
    padding: 28px 20px 24px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.follow-modal-overlay.active .follow-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.follow-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.follow-modal-close:hover {
    background: #333333;
    transform: scale(1.05);
}

.follow-modal-title {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    text-align: center;
}

.follow-modal-subtitle {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0;
    text-align: center;
}

.follow-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
}

.btn-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-follow:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-follow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-follow.facebook { background: #1877f2; }
.btn-follow.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-follow.tiktok { background: #000000; }
.btn-follow.youtube { background: #ff0000; }
.btn-follow.twitter { background: #000000; }

@media (max-width: 500px) {
    .follow-modal-overlay {
        padding: 24px 8px;
    }

    .btn-follow {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
