/* Metrekare Hesaplayıcı Stilleri */

:root {
    --primary-color: #007bff;
    --primary-hover: #0069d9;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #555;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Poppins', Arial, sans-serif;
    --transition: all 0.3s ease;
}

.square-footage-calculator-container {
    font-family: var(--font-family);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
    box-sizing: border-box;
    overflow: hidden;
}

.square-footage-calculator {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.square-footage-calculator .calc-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

.square-footage-calculator .calc-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.calculator-description {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Tablar */
.calc-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    padding-bottom: 15px;
    overflow-x: auto;
    width: 100%;
}

.tab-btn {
    padding: 14px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    flex: 1;
    max-width: 220px;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
}

/* Tab İçerikleri */
.calc-tab-content {
    display: none;
    padding: 20px 0;
    width: 100%;
}

.calc-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hesaplama Bölümleri */
.calculator-section {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.section-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.section-form {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    text-align: center;
    font-size: 1.3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

/* Form Başlık Stilleri */
.form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.form-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

.section-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.section-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    object-fit: contain;
}

.section-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Giriş Satırları */
.calculator-input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.calculator-input-row.single-column {
    grid-template-columns: 1fr;
}

.input-group {
    position: relative;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.input-group label i {
    color: var(--primary-color);
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.input-with-unit {
    display: flex;
    align-items: center;
    height: 46px;
    width: 100%;
    box-sizing: border-box;
}

.input-with-unit.full-width {
    display: block;
}

.input-with-unit input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    background-color: #fff;
    transition: var(--transition);
    height: 100%;
    width: calc(100% - 100px);
    box-sizing: border-box;
}

.input-with-unit input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.input-with-unit.full-width select {
    width: 100%;
    border-radius: 4px;
    height: 46px;
}

.input-with-unit select,
.unit-placeholder {
    width: 100px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 0 4px 4px 0;
    border-left: none;
    font-size: 0.95rem;
    background-color: #f5f5f5;
    color: var(--text-muted);
    transition: var(--transition);
    height: 100%;
    box-sizing: border-box;
}

.input-with-unit select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.unit-placeholder {
    text-align: center;
    background-color: #f5f5f5;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Üçgen hesaplayıcı için radyo butonları */
.calculator-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.option-group {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.option-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.option-group label {
    font-weight: 500;
    cursor: pointer;
}

/* Hesapla Düğmesi */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    box-sizing: border-box;
}

.calculate-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 123, 255, 0.25);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.calculate-btn i {
    font-size: 1.2rem;
}

/* Sonuç Bölümü */
.calculator-results {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 35px;
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.results-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
}

.results-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.results-header h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    background-color: #f0f8ff;
}

.result-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.result-card:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    overflow: hidden;
}

.result-label {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.result-value {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.3rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Alan Dönüşümleri */
.conversion-results {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.conversion-results h5 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.conversion-item {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.conversion-label {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.conversion-value {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Hesaplama Adımları */
.calculation-steps {
    margin-top: 5px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    width: 100%;
    box-sizing: border-box;
}

.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.steps-header h4 {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.steps-toggle:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.steps-container {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.step-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.step-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 600;
}

/* Metrekare Bilgileri Bölümü */
.square-footage-info {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.square-footage-info h3 {
    margin-top: 0;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-size: 1.6rem;
}

.square-footage-info h3:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    border-radius: 2px;
}

.square-footage-info h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.square-footage-info p, .square-footage-info li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.square-footage-info ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.square-footage-info li {
    margin-bottom: 8px;
}

/* Tablo Stilleri */
.info-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.info-table th, 
.info-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.info-table th {
    background-color: var(--primary-color);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.info-table tr:hover {
    background-color: #f1f1f1;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .section-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .section-image img {
        max-height: 250px;
    }
    
    .results-grid,
    .conversion-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-input-row {
        grid-template-columns: 1fr;
    }
    
    .square-footage-calculator {
        padding: 20px;
    }
    
    .section-form {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .square-footage-calculator-container {
        padding: 10px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        min-width: unset;
        flex: 1;
        max-width: unset;
    }
    
    .tab-label {
        font-size: 0.9rem;
    }
    
    .calc-tabs {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .square-footage-calculator .calc-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .calculate-btn {
        padding: 12px;
    }
    
    .input-with-unit input {
        width: calc(100% - 80px);
    }
    
    .input-with-unit select,
    .unit-placeholder {
        width: 80px;
        padding: 12px 5px;
    }
    
    .calculator-options {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .square-footage-calculator-container {
        padding: 5px;
    }
    
    .square-footage-calculator {
        padding: 15px;
    }
    
    .tab-label {
        display: none;
    }
    
    .tab-icon {
        margin: 0;
    }
    
    .tab-btn {
        padding: 10px;
        justify-content: center;
    }
    
    .result-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .result-value {
        font-size: 1.1rem;
    }
    
    .info-table th, 
    .info-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .section-form {
        padding: 15px;
    }
} 