* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 40px;
    padding: 30px 0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: #2c2c2c;
}

header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
}

.usage-guide {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.usage-guide h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.usage-guide ol {
    margin-left: 20px;
    color: #666;
    line-height: 1.8;
}

.usage-guide li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.usage-guide li:last-child {
    margin-bottom: 0;
}

.input-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.input-group {
    display: flex;
    gap: 15px;
}

#urunUrl {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s;
    background: #ffffff;
    color: #2c2c2c;
}

#urunUrl:focus {
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

#analizBtn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    color: #2c2c2c;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#analizBtn:hover {
    background: #f5f5f5;
    border-color: #999;
}

#analizBtn:active {
    background: #eeeeee;
}

#analizBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.loading {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.loading p {
    color: #666;
    margin-top: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #999;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background: #ffffff;
    color: #666;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 3px solid #d0d0d0;
    border: 1px solid #e8e8e8;
}

.results {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.product-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.product-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-placeholder {
    font-size: 3rem;
    color: #d0d0d0;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h2 {
    color: #2c2c2c;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.product-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.product-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.product-details p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.product-details strong {
    color: #2c2c2c;
    font-weight: 500;
    margin-right: 8px;
}

.badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-star {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e8e8e8;
}

.badge-price {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e8e8e8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #fafafa;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.stat-card:hover {
    background: #ffffff;
    border-color: #d0d0d0;
}

.stat-card.highlight {
    background: #ffffff;
    border: 1px solid #d0d0d0;
}

.stat-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.6;
}

.stat-content {
    width: 100%;
}

.stat-content h3 {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 300;
    color: #2c2c2c;
    letter-spacing: -0.5px;
}

.hidden {
    display: none;
}


@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    #analizBtn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.highlight {
        grid-column: span 1;
    }
    
    .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image-wrapper {
        width: 100%;
        height: 250px;
        margin: 0 auto;
    }
    
    .product-info h2 {
        font-size: 1.1rem;
    }
}

