/* Calculator Page Styles */
.calculator-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.calculator-hero::before,
.calculator-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.calculator-hero::before {
    background-image: url('../images/slider1.png');
    animation: slideshow1 15s infinite;
}

.calculator-hero::after {
    background-image: url('../images/slider2.png');
    animation: slideshow2 15s infinite;
    opacity: 0;
}

@keyframes slideshow1 {
    0%, 30% { opacity: 1; }
    33%, 36% { opacity: 0; }
    64%, 67% { opacity: 0; }
    70%, 100% { opacity: 1; }
}

@keyframes slideshow2 {
    0%, 30% { opacity: 0; }
    33%, 36% { opacity: 1; }
    64%, 67% { opacity: 1; }
    70%, 100% { opacity: 0; }
}

.calculator-hero .slider3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/slider3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideshow3 15s infinite;
    z-index: 0;
}

@keyframes slideshow3 {
    0%, 64% { opacity: 0; }
    67%, 70% { opacity: 1; }
    97%, 100% { opacity: 0; }
}

.calculator-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(217, 119, 6, 0.6) 100%);
    z-index: 1;
}

.calculator-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.calculator-hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calculator-hero p {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #ffffff;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.calculator-form {
    padding: 60px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h2 {
    margin: 0;
    font-size: 2rem;
}

.form-content {
    padding: 40px;
}

/* Price Input Section */
.price-section {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.price-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.price-section p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.price-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    max-width: 320px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.price-input-wrapper:focus-within {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.price-input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    width: 100%;
    text-align: center;
    padding: 8px 0;
}

.price-input-wrapper .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b35;
    padding-right: 12px;
}

.price-input-wrapper input::placeholder {
    color: #a0aec0;
    font-weight: 500;
}

.devices-section h3 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

/* Cihaz Grid Container */
.device-selection-section {
    text-align: center;
    margin-bottom: 32px;
}

.device-selection-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.device-selection-section p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 24px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.appliance-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
    padding: 0;
}

/* Cihaz Kartı */
.appliance-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.appliance-card:hover {
    border-color: #ff6b35;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Checkbox gizli */
.appliance-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Label container */
.appliance-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Seçili durum */
.appliance-checkbox:checked + .appliance-label {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.appliance-checkbox:checked + .appliance-label .appliance-icon-wrapper {
    color: white;
    transform: scale(1.1);
}

.appliance-checkbox:checked + .appliance-label .appliance-title {
    color: white;
}

.appliance-checkbox:checked + .appliance-label .appliance-specs {
    color: rgba(255, 255, 255, 0.9);
}

/* İkon wrapper */
.appliance-icon-wrapper {
    font-size: 2.8rem;
    color: #ff6b35;
    margin-bottom: 12px;
    transition: all 0.25s ease;
    line-height: 1;
}

/* Başlık */
.appliance-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 6px 0;
    line-height: 1.3;
    transition: color 0.25s ease;
}

/* Güç bilgisi */
.appliance-specs {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.25s ease;
}

/* Hesaplama Butonu */
.form-actions {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.calculate-button {
    background-image: linear-gradient(to right, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.calculate-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}


.calculate-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.calculate-button:hover i {
    transform: rotate(-15deg);
}

/* Results Page Styles */
.calculator-results {
    padding: 60px 0;
    background: #f8f9fa;
}

.results-summary {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-summary h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.summary-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 12px;
}

.summary-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    opacity: 0.9;
}

.consumption {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cost {
    font-size: 2rem;
    font-weight: 700;
}

.device-results {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.device-results h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.results-table {
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.results-table td {
    text-align: center;
}

.device-name {
    font-weight: 600;
    color: #333;
}

.savings-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.savings-info h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.savings-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.savings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.savings-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.benefit-item i {
    font-size: 1.2rem;
}

.action-buttons {
    text-align: center;
    margin-bottom: 40px;
}

.action-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}



.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.calculation-note {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.calculation-note p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-hero {
        min-height: 70vh;
    }
    
    .calculator-hero .hero-content {
        padding: 40px 15px;
    }
    
    .calculator-hero h1 {
        font-size: 2.8rem;
    }
    
    .calculator-hero p {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .device-item {
        max-width: 150px;
    }
    
    .device-icon {
        font-size: 2rem;
    }
    
    .device-name {
        font-size: 0.8rem;
    }
    
    .device-power {
        font-size: 0.7rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-table {
        font-size: 0.9rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 5px;
    }
    
    .action-buttons .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .savings-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .calculator-hero {
        min-height: 50vh;
    }
    
    .calculator-hero h1 {
        font-size: 2rem;
    }
    
    .calculator-hero p {
        font-size: 1.1rem;
    }
    
    .calculator-hero .hero-content {
        padding: 30px 10px;
    }
    
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .device-item {
        max-width: 130px;
    }
    
    .device-item label {
        padding: 12px;
    }
    
    .device-icon {
        font-size: 1.8rem;
    }
    
    .device-name {
        font-size: 0.75rem;
    }
    
    .device-power {
        font-size: 0.65rem;
    }
}

@media (min-width: 1200px) {
    .devices-grid {
        grid-template-columns: repeat(6, 1fr);
        max-width: 1200px;
        margin: 20px auto 0;
    }
}