/* ====================================
   File: wwwroot/css/slug-manager.css
   URL ändern Modal - KOMPLETT NEU BASIEREND AUF LINK-MODAL STYLE
   ==================================== */

/* Modal Overlay - IDENTISCH MIT LINK-MODAL */
.slug-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

/* Modal Container - WIE LINK-MODAL */
.slug-modal {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

/* Modal Header - WIE LINK-MODAL */
.slug-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.slug-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.slug-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f7fafc;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slug-modal-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* Modal Body */
.slug-modal-body {
    margin-bottom: 1.25rem;
}

.slug-modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.25rem;
}

/* ===== MITTELBEREICH - ORIGINAL BEHALTEN ===== */

/* Countdown Container */
.slug-countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.slug-countdown-label {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slug-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.countdown-segment {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0.75rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.countdown-segment:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.375rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Input Container */
.slug-input-container {
    margin-bottom: 1.25rem;
}

.slug-input-group {
    margin-bottom: 0;
}

.slug-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #2d3748;
    font-size: 0.875rem;
}

.slug-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.slug-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.slug-input-prefix {
    color: #718096;
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.slug-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    outline: none;
}

.slug-input-wrapper input::placeholder {
    color: #cbd5e0;
}

.slug-input-wrapper input:disabled {
    color: #a0aec0;
    cursor: not-allowed;
}

/* Feedback Messages */
.slug-feedback {
    min-height: 20px;
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s;
}

.slug-feedback-visible {
    opacity: 1;
    transform: translateY(0);
}

.slug-feedback-checking {
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.slug-feedback-success {
    color: #10b981;
    font-weight: 700;
    font-size: 0.875rem;
}

.slug-feedback-error {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.875rem;
}

.slug-feedback-success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
}

.slug-feedback-error-box {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
}

.slug-feedback-suggestion {
    display: block;
    margin-top: 0.375rem;
    color: #667eea;
    font-size: 0.8rem;
    font-weight: 600;
}

.slug-suggestion-btn {
    background: transparent;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
    padding: 0;
    font-size: inherit;
}

.slug-suggestion-btn:hover {
    color: #764ba2;
}

/* Info Box */
.slug-info-box {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-top: 1rem;
}

.slug-info-box p {
    margin: 0;
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    line-height: 1.5;
}

/* Upgrade Box */
.slug-upgrade-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.slug-upgrade-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.slug-upgrade-box h3 {
    color: #2d3748;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slug-upgrade-box p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.slug-upgrade-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.slug-upgrade-features li {
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.slug-upgrade-features li:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

/* ===== ENDE MITTELBEREICH ===== */

/* Modal Footer - WIE LINK-MODAL */
.slug-modal-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Buttons - IDENTISCH MIT LINK-MODAL */
.slug-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.slug-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.slug-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.slug-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.slug-btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.slug-btn-secondary:hover {
    background: #f7fafc;
}

.slug-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.slug-btn-upgrade {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.slug-btn-upgrade:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5) !important;
}

.slug-btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Toast Notification - WIE LINK-MODAL */
.slug-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    z-index: 10001;
    max-width: 400px;
}

.slug-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.slug-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.slug-notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Animations - WIE LINK-MODAL */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Mobile Responsive - WIE LINK-MODAL */
@media (max-width: 768px) {
    .slug-modal {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .slug-modal-header h2 {
        font-size: 1.35rem;
    }
    
    .slug-modal-body {
        margin-bottom: 1rem;
    }
    
    .slug-modal-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .slug-input-group label {
        font-size: 0.8rem;
    }
    
    .slug-input-wrapper {
        padding: 0.625rem 0.875rem;
    }
    
    .slug-input-wrapper input {
        font-size: 0.9rem;
    }
    
    .slug-modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .slug-btn {
        width: 100%;
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .slug-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    /* Countdown Mobile */
    .slug-countdown-container {
        padding: 1.25rem;
    }
    
    .slug-countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .countdown-segment {
        padding: 0.875rem 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.75rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    /* Upgrade Box Mobile */
    .slug-upgrade-box {
        padding: 1.5rem 1.25rem;
    }
    
    .slug-upgrade-icon {
        font-size: 2.5rem;
    }
    
    .slug-upgrade-box h3 {
        font-size: 1.2rem;
    }
    
    .slug-upgrade-box p {
        font-size: 0.9rem;
    }
}

/* Very Small Screens - WIE LINK-MODAL */
@media (max-width: 400px) {
    .slug-modal {
        padding: 1.25rem;
    }
    
    .slug-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .slug-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
