/**
 * Ön Kayıt Formları - Paylaşım Kodları CSS
 * Pre Registration Forms - Share Codes Styles
 * 
 * @author selcukmart <admin@hostingdevi.com>
 * @date 4.02.2025
 * @version 2.21 - Direct link input readonly görünümü ve kopyalama animasyonu
 */

/* ========================================
   Pre Registration Share Codes - Main Container
   ======================================== */
.pre-registration-share-codes {
    margin: 15px 0;
}

/* ========================================
   Premium Tab Container Wrapper
   ======================================== */
.pre-registration-share-codes > .tabbable-line {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 12px 15px 15px;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.3s ease;
}

.pre-registration-share-codes > .tabbable-line:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ========================================
   Premium Tab Navigation Styles
   ======================================== */
.pre-registration-share-codes .tabbable-line > .nav-tabs {
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 0;
    padding-left: 0;
    background: transparent;
}

.pre-registration-share-codes .tabbable-line > .nav-tabs > li {
    margin-bottom: -2px;
    margin-right: 4px;
}

.pre-registration-share-codes .tabbable-line > .nav-tabs > li > a {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    color: #666;
    padding: 11px 18px;
    background: linear-gradient(to bottom, #f8f8f8 0%, #ececec 100%);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    margin-right: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pre-registration-share-codes .tabbable-line > .nav-tabs > li > a:hover {
    background: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
    color: #3598dc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(53, 152, 220, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pre-registration-share-codes .tabbable-line > .nav-tabs > li.active > a,
.pre-registration-share-codes .tabbable-line > .nav-tabs > li.active > a:hover,
.pre-registration-share-codes .tabbable-line > .nav-tabs > li.active > a:focus {
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
    color: #3598dc;
    font-weight: 600;
    border-bottom: 2px solid #3598dc;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(53, 152, 220, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    z-index: 2;
}

/* Premium Active Indicator */
.pre-registration-share-codes .tabbable-line > .nav-tabs > li.active > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #3598dc 0%, #5ba4e5 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 1px 3px rgba(53, 152, 220, 0.3);
}

/* ========================================
   Premium Form Share Content
   ======================================== */
.form-share-content {
    padding: 25px;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
    border: none;
    border-top: 1px solid #e5e5e5;
    border-radius: 0;
    margin-top: 0;
}

.form-share-title {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-weight: 600;
}

.form-share-title .label {
    margin-right: 8px;
    font-size: 11px;
    vertical-align: middle;
    padding: 4px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Premium Code Sections - Gömme Kodu & Direkt Link
   ======================================== */
.form-share-content > div {
    background: #ffffff;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.form-share-content > div:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-share-content > div:last-child {
    margin-bottom: 0;
}

/* Premium Başlıklar */
.form-share-content > div > h4,
.form-share-content > div > h5 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.form-share-content > div > h4 i,
.form-share-content > div > h5 i {
    margin-right: 10px;
    color: #3598dc;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(53, 152, 220, 0.2);
}

/* Premium Alert mesajları */
.form-share-content .alert {
    margin-bottom: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-left-width: 4px;
    background: linear-gradient(to right, rgba(255, 243, 205, 0.3) 0%, rgba(255, 243, 205, 0) 100%);
    border-radius: 4px;
}

/* ========================================
   Premium Code Copy Textarea
   ======================================== */
.code-copy-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    resize: vertical;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 12px 110px 12px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.code-copy-textarea:focus {
    background: #ffffff;
    border-color: #3598dc;
    box-shadow: 0 0 0 3px rgba(53, 152, 220, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.03);
    outline: none;
}

/* ========================================
   Premium Copy Buttons
   ======================================== */
.copyButton {
    z-index: 10;
    white-space: nowrap;
    background: linear-gradient(to bottom, #3598dc 0%, #2b7eb8 100%);
    border: 1px solid #2b7eb8;
    box-shadow: 0 2px 6px rgba(53, 152, 220, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.copyButton:hover {
    background: linear-gradient(to bottom, #4aa8e8 0%, #3598dc 100%);
    box-shadow: 0 4px 12px rgba(53, 152, 220, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: #3598dc;
}

.copyButton:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(53, 152, 220, 0.3);
}

.copyButton i {
    margin-right: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Container V2 Styles (Portlet Version)
   ======================================== */
.iframe-container-v2 {
    margin: 20px 0;
}

.iframe-container-v2 .portlet-title {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e7ecf1;
}

.iframe-container-v2 .portlet-body {
    padding: 20px;
}

.iframe-container-v2 .embed-code-wrapper {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.iframe-container-v2 .alert {
    font-size: 13px;
}

.iframe-container-v2 .alert i {
    margin-right: 5px;
}

/* Collapse Animation */
#share-code-collapse {
    transition: height 0.3s ease;
}

/* ========================================
   Direct Link Input - Readonly Görünümlü
   ======================================== */
.direct-link-input {
    background-color: #f5f5f5 !important;
    color: #555 !important;
    cursor: pointer !important;
    user-select: all !important;
    -webkit-user-select: all !important;
    -moz-user-select: all !important;
    -ms-user-select: all !important;
}

.direct-link-input:focus {
    background-color: #fff !important;
    border-color: #3598dc !important;
    box-shadow: 0 0 0 3px rgba(53, 152, 220, 0.1) !important;
    outline: none !important;
}

/* Kopyalama başarılı animasyonu */
.direct-link-input.copy-success {
    background-color: #dff0d8 !important;
    border-color: #3c763d !important;
    transition: all 0.3s ease;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    .pre-registration-share-codes .tabbable-line > .nav-tabs > li > a {
        font-size: 12px;
        padding: 8px 10px;
    }

    .form-share-title {
        font-size: 16px;
    }

    .code-copy-textarea {
        font-size: 11px;
        padding-right: 10px;
        padding-bottom: 35px;
    }

    .copyButton {
        position: relative !important;
        width: 100%;
        margin-top: 5px;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
    }

    .iframe-container-v2 .portlet-body {
        padding: 15px;
    }

    .iframe-container-v2 .embed-code-wrapper {
        padding: 10px;
    }
}

/* Tablets and Small Desktops (max-width: 991px) */
@media (max-width: 991px) {
    .pre-registration-form-card {
        min-height: auto !important;
    }
}

/* Desktop Specific Styles (min-width: 992px) */
@media (min-width: 992px) {
    .pre-registration-share-codes:not(.in-modal) .pre-registration-form-card {
        min-height: 280px;
    }

    .pre-registration-share-codes:not(.in-modal) .portlet-title {
        padding: 12px 20px !important;
    }

    .pre-registration-share-codes:not(.in-modal) .portlet-body {
        padding: 15px 20px;
    }

    .pre-registration-share-codes:not(.in-modal) .action-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .pre-registration-share-codes:not(.in-modal) .action-buttons .btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}
