/* assets/css/retrosentetik.css'ye ekleyin */

/* Mobil ipucu popup debug */
.mobile-hint-popup {
    background: linear-gradient(135deg, #fffaf0, #feebc8);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ed8936;
    font-size: 0.8em;
    color: #744210;
    width: 100%;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(246, 173, 85, 0.4);
    display: none; /* BU SATIR ÖNEMLİ: none olmalı */
    position: relative;
    z-index: 10;
    animation: slideDown 0.3s ease-out;
    /* DEBUG için */
    /* display: block !important; */ /* Bu satırı test etmek için açabilirsiniz */
    /* opacity: 1 !important; */ /* Bu satırı test etmek için açabilirsiniz */
}

.mobile-hint-popup.show {
    display: block !important; /* BU SATIR ÖNEMLİ: show class'ı eklenince block olmalı */
    opacity: 1 !important;
}


/* DESKTOP: SOLDAN SAĞA DÜZEN */
.desktop-layout {
    display: block;
}

.mobile-layout {
    display: none;
}

.single-row-container {
    height: 600px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 15px 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    width: 100%;
    margin: 0 auto;
}

.molecule-item {
    flex: 0 0 auto;
    width: 140px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0 4px;
}

/* SAĞA BAKAN OK */
.arrow-container {
    flex: 0 0 auto;
    width: 85px;
    height: 85px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

.right-arrow {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2980b9, #3498db);
    position: relative;
}

.right-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border-left: 6px solid #2980b9;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* MOBİL: DİKEY DÜZEN */
.mobile-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.mobile-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mobile-molecule {
    width: 100%;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.mobile-reagent-selector {
    width: 100%;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
    margin-bottom: 10px;
}

.mobile-down-arrow {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #2980b9, #3498db);
    position: relative;
    margin: 10px 0;
}

.mobile-down-arrow::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -4px;
    border-top: 6px solid #2980b9;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.mobile-hint-section {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    width: 100%;
    margin-bottom: 10px;
}

.mobile-hint-button {
    background: #f6ad55;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.8em;
    cursor: pointer;
    flex: 1;
    max-width: 140px;
    transition: background 0.2s;
}

.mobile-hint-button:hover,
.mobile-hint-button:active {
    background: #ed8936;
}

.mobile-hint-popup {
    background: linear-gradient(135deg, #fffaf0, #feebc8);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ed8936;
    font-size: 0.8em;
    color: #744210;
    width: 100%;
    margin-top: 5px;
    box-shadow: 0 8px 20px rgba(246, 173, 85, 0.4);
    display: none;
    position: relative;
    z-index: 10;
    animation: slideDown 0.3s ease-out;
}

.mobile-hint-popup.show {
    display: block;
}

.mobile-hint-popup:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ed8936;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* REAKTİF SEÇİCİ */
.reagent-selector {
    position: absolute;
    top: -190px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #3498db;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
    width: 140px;
    z-index: 100;
}

.reagent-label {
    font-size: 0.75em;
    color: #4a5568;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
}

.reagent-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.reagent-option {
    padding: 6px 8px;
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    word-break: break-word;
}

.reagent-option:hover {
    background: #ebf8ff;
    border-color: #3498db;
}

.reagent-option input {
    margin-right: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

/* İPUCU BUTONU */
.hint-button {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    background: #f6ad55;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 0.65em;
    cursor: pointer;
    z-index: 110;
}

/* İPUCU POPUP */
.hint-popup {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    background: #fffaf0;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #f6ad55;
    font-size: 0.75em;
    color: #744210;
    z-index: 200;
    width: 160px;
    box-shadow: 0 6px 15px rgba(246, 173, 85, 0.3);
    display: none;
}

.hint-popup.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hint-popup strong {
    display: block;
    margin-bottom: 6px;
    color: #d69e2e;
}
.scheme-header {
        position: relative;
        top: 75px;
    }

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
        margin-top: 110px;
    }
    
    .full-width-container {
        min-width: unset;
        padding: 10px;
    }
    
    .scheme-header {
        position: relative;
        top: 100px;
    }
    
    .control-panel {
        position: relative;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .mobile-molecule {
        padding: 10px;
    }
    
    .molecule-image {
        height: 70px;
    }
    
    .mobile-reagent-selector {
        padding: 10px;
    }
    
    .reagent-option {
        padding: 5px 6px;
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .full-width-container {
        padding: 8px;
    }
    
    .molecule-image {
        height: 60px;
    }
    
    .molecule-name {
        font-size: 0.8em;
    }
    
    .molecule-formula {
        font-size: 0.7em;
    }
    
    .action-btn {
        padding: 8px 14px;
        font-size: 0.8em;
        min-width: 120px;
    }
    
    .mobile-hint-button {
        padding: 7px 12px;
        font-size: 0.75em;
        max-width: 130px;
    }
}