/* Acil Vision Plugin - Ana CSS Dosyası */

/* ===== GENEL STİLLER ===== */
.acil-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.acil-vision-desc {
    margin: 0 0 18px 0;
    padding: 0;
    font-size: 17px;
    color: #222;
    text-align: left;
    font-weight: 500;
}

/* ===== FORM STİLLERİ ===== */
.acil-vision-form {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acil-vision-header-image {
    display: block;
    margin: 0 auto 16px auto;
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 12px;
}

/* ===== DRAG & DROP ALANI ===== */
.drag-drop-area {
    display: none;
    flex: 1;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: #f9f9f9;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.drag-drop-area.dragover {
    background-color: #fff3e0;
    box-shadow: 0 0 0 2px #ff9800 inset;
}

.drag-drop-label {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.drag-drop-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

/* ===== ADD MENU ===== */
.add-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1.5px solid #ff9800;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    z-index: 10;
    min-width: 220px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.add-menu-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 22px 0 18px 0;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.2s;
    border-radius: 16px 16px 0 0;
}

.add-menu-item:hover {
    background: #fff3e0;
}

.add-menu-item:last-child {
    border-radius: 0 0 16px 16px;
    padding: 18px 0 22px 0;
}

.add-menu-divider {
    height: 1px;
    background: #ffe0b2;
    width: 80%;
    margin: 0 auto;
}

/* ===== BUTTON STİLLERİ ===== */
.btn-grad {background-image: linear-gradient(to right, #AA076B 0%, #61045F  51%, #AA076B  100%)}
.btn-grad {
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;            
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    display: block;
}

.btn-grad:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.btn-grad-yorumla {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    width: 100%;
}

.btn-grad-yorumla:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.btn-grad-sifirla {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
    width: 100%;
}

.btn-grad-sifirla:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(127, 140, 141, 0.4);
}

/* ===== INPUT STİLLERİ ===== */
.acil-vision-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.acil-vision-textarea:focus {
    outline: none;
    border-color: #AA076B;
    box-shadow: 0 0 0 2px rgba(170, 7, 107, 0.2);
}

/* ===== RESULT STİLLERİ ===== */
.acil-vision-result {
    margin-top: 24px;
    background: #ecf0f1;
    padding: 20px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    max-height: none;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
}

/* ===== MODERN SPINNER STİLLERİ ===== */
.acil-vision-spinner {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.acil-vision-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
}

.spinner::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.spinner-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.spinner-subtext {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.pulse-dots {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Modern Loading Dots */
.loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-top: 15px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: loading-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loading-dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ===== IMAGE PREVIEW STİLLERİ ===== */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-wrapper img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.preview-wrapper button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preview-wrapper button:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== RESPONSIVE TASARIM ===== */
@media (max-width: 768px) {
    .acil-vision-form {
        margin: 20px auto;
        padding: 16px;
        border-radius: 12px;
    }
    
    .drag-drop-area {
        min-height: 60px;
        padding: 12px;
    }
    
    .btn-grad, .btn-grad-yorumla, .btn-grad-sifirla {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .acil-vision-textarea {
        font-size: 14px;
        min-height: 60px;
    }
    
    .image-preview-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .preview-wrapper img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .acil-vision-container {
        padding: 10px;
    }
    
    .acil-vision-form {
        margin: 10px auto;
        padding: 12px;
    }
    
    .add-menu {
        min-width: 200px;
    }
    
    .image-preview-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }
    
    .preview-wrapper img {
        height: 80px;
    }
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}

/* ===== UTILITY CLASSES ===== */
.acil-vision-hidden {
    display: none !important;
}

.acil-vision-visible {
    display: block !important;
}

.acil-vision-text-center {
    text-align: center;
}

.acil-vision-text-left {
    text-align: left;
}

.acil-vision-text-right {
    text-align: right;
}

.acil-vision-mb-10 {
    margin-bottom: 10px;
}

.acil-vision-mb-20 {
    margin-bottom: 20px;
}

.acil-vision-mt-10 {
    margin-top: 10px;
}

.acil-vision-mt-20 {
    margin-top: 20px;
} 