/**
 * FS License Manager Code View - Frontend Styles
 */

/* Ana Bölüm */
.fslmcv-license-section {
    margin: 30px 0;
    padding: 0;
}

.fslmcv-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.4em;
    color: #333;
}

.fslmcv-section-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

/* Lisans Öğesi */
.fslmcv-license-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fslmcv-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.fslmcv-product-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.fslmcv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.fslmcv-badge-viewed {
    background: #d4edda;
    color: #155724;
}

.fslmcv-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Uyarı Kutusu */
.fslmcv-reveal-container {
    padding: 20px;
}

.fslmcv-warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fslmcv-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #856404;
}

.fslmcv-warning-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #e0a800;
}

.fslmcv-warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fslmcv-warning-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #664d03;
    font-size: 0.95em;
    line-height: 1.5;
}

.fslmcv-warning-list li .dashicons {
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    color: #856404;
}

/* Checkbox */
.fslmcv-checkbox-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.fslmcv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95em;
    color: #333;
}

.fslmcv-checkbox-label input[type="checkbox"] {
    display: none;
}

.fslmcv-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #2271b1;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fslmcv-checkbox-label input:checked + .fslmcv-checkmark {
    background: #2271b1;
}

.fslmcv-checkbox-label input:checked + .fslmcv-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Butonlar */
.fslmcv-button-container {
    text-align: center;
    margin: 20px 0;
}

.fslmcv-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

.fslmcv-reveal-btn:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4b7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.fslmcv-reveal-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fslmcv-reveal-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fslmcv-reveal-btn.loading .dashicons::before {
    content: "\f463";
    animation: fslmcv-spin 1s linear infinite;
}

@keyframes fslmcv-spin {
    100% { transform: rotate(360deg); }
}

/* Hata Mesajı */
.fslmcv-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95em;
}

/* Kod Gösterimi */
.fslmcv-code-container {
    padding: 20px;
}

.fslmcv-code-revealed {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px dashed #28a745;
    border-radius: 8px;
}

.fslmcv-code-display {
    flex: 1;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
}

.fslmcv-code-display code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    word-break: break-all;
    display: block;
}

.fslmcv-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    background: #fff;
    border: 2px solid #2271b1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fslmcv-copy-btn:hover {
    background: #2271b1;
    color: #fff;
}

.fslmcv-copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* Başarı Mesajı */
.fslmcv-success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
    font-size: 0.95em;
}

.fslmcv-success-message .dashicons {
    color: #28a745;
}

/* Bilgi Notu */
.fslmcv-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    margin-top: 20px;
}

.fslmcv-info-note .dashicons {
    flex-shrink: 0;
    color: #0056b3;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fslmcv-info-note p {
    margin: 0;
    color: #004085;
    font-size: 0.9em;
    line-height: 1.5;
}

.fslmcv-loading {
    color: #666;
    font-style: italic;
}

/* Shake Animasyonu */
@keyframes fslmcv-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.fslmcv-shake {
    animation: fslmcv-shake 0.5s ease-in-out;
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

/* Placeholder for sortable */
.fslmcv-warning-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .fslmcv-product-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .fslmcv-code-revealed {
        flex-direction: column;
    }
    
    .fslmcv-reveal-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Kod Link Stili (Redeem URL) */
.fslmcv-code-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 8px 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fslmcv-code-link:hover {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border-color: #66bb6a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
    text-decoration: none;
    color: inherit;
}

.fslmcv-code-link code {
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.fslmcv-code-link .dashicons-external {
    font-size: 16px;
    color: #43a047;
    transition: transform 0.2s ease;
}

.fslmcv-code-link:hover .dashicons-external {
    transform: translate(2px, -2px);
}
