/* Kendin Oluştur - Yapılandırma Sistemi */

.config-section {
    padding: 40px 0 60px;
    background: #fff;
}

/* Custom Grid System */
.config-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.config-grid-left {
    min-height: 1000px;
}

.config-grid-right {
    position: relative;
    min-height: 600px;
}

@media (max-width: 992px) {
    .config-grid-wrapper {
        grid-template-columns: 1fr;
    }
}

.config-page-title {
    text-align: center;
    margin-bottom: 40px;
}

.config-page-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.config-page-title p {
    font-size: 16px;
    color: #7f8c8d;
}

.config-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e1e8ed;
    margin-bottom: 20px;
}

.config-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.config-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.config-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
}

.config-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.config-btn {
    padding: 10px 16px;
    border: 1px solid #e1e8ed;
    background: #f8f9fb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 13px;
    color: #2c3e50;
    white-space: nowrap;
    text-align: center;
    width: auto;
}

.config-btn:hover {
    border-color: #3fa8e8;
    background: #f0f8ff;
    color: #3fa8e8;
}

.config-btn.active {
    border-color: #3fa8e8;
    background: #3fa8e8;
    color: white;
}

.config-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #2c3e50;
    transition: all 0.2s;
}

.config-select:focus {
    outline: none;
    border-color: #3fa8e8;
    box-shadow: 0 0 0 3px rgba(63,168,232,0.1);
}

.config-number-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-number-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e1e8ed;
    background: #f8f9fb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #2c3e50;
    font-weight: 600;
}

.config-number-btn:hover {
    border-color: #3fa8e8;
    background: #f0f8ff;
    color: #3fa8e8;
}

.config-number-display {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
}

.config-number-unit {
    font-size: 13px;
    color: #7f8c8d;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e1e8ed;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 100;
    transition: top 0.1s ease-out;
}

@media (max-width: 992px) {
    .config-grid-right {
        position: static;
    }
    
    .order-summary {
        position: relative;
        top: 0 !important;
    }
}

.order-summary-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fb;
    font-size: 13px;
}

.order-item:last-of-type {
    border-bottom: 1px solid #e1e8ed;
}

.order-item-label {
    color: #7f8c8d;
    flex: 1;
}

.order-item-value {
    color: #2c3e50;
    font-weight: 600;
    margin-left: 10px;
}

.order-empty {
    text-align: center;
    padding: 20px;
    color: #bdc3c7;
    font-size: 13px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #3fa8e8;
    margin-top: 12px;
}

.order-total-label {
    color: #2c3e50;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #3fa8e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px;
}

.submit-btn:hover {
    background: #2d8fc9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63,168,232,0.25);
}

.submit-btn {
    position: relative;
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tooltip-text {
    visibility: hidden;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2c3e50 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal */
.config-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.config-modal.active {
    display: flex;
}

.config-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.config-modal-header {
    margin-bottom: 20px;
}

.config-modal-header h3 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.config-modal-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.config-modal-body {
    margin-bottom: 20px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #3fa8e8;
    box-shadow: 0 0 0 3px rgba(63,168,232,0.1);
}

.modal-summary {
    background: #f8f9fb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.modal-summary h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-primary {
    background: #3fa8e8;
    color: white;
}

.modal-btn-primary:hover {
    background: #2d8fc9;
}

.modal-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.modal-btn-secondary:hover {
    background: #d5dbdb;
}

/* Responsive */
@media (max-width: 992px) {
    .order-summary {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .config-section {
        padding: 30px 0;
    }
    
    .config-page-title h2 {
        font-size: 26px;
    }
    
    .config-container {
        padding: 20px;
    }
    
    .config-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .config-modal-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .config-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .config-page-title h2 {
        font-size: 22px;
    }
    
    .order-summary {
        padding: 18px;
    }
    
    .order-summary-title {
        font-size: 16px;
    }
    
    .order-total {
        font-size: 16px;
    }
}

