/* ===================================
   BISIKLETROTAM.COM - YEREL CSS
   Kadro Hesaplama Sistemi v3.0
   =================================== */

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0fdf4 100%);
    min-height: 100vh;
}

/* Layout Container */
.min-h-screen {
    min-height: 100vh;
}

.max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
}

.max-w-2xl {
    max-width: 42rem;
    margin: 0 auto;
}

.max-w-md {
    max-width: 28rem;
}

/* Padding & Margin Utilities */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 0.25rem; }
.mr-4 { margin-right: 1rem; }

/* Flex Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:p-8 { padding: 2rem; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-900 { color: #1e3a8a; }
.text-blue-100 { color: #dbeafe; }
.text-green-600 { color: #16a34a; }
.text-yellow-600 { color: #ca8a04; }
.text-yellow-800 { color: #854d0e; }
.text-orange-600 { color: #ea580c; }
.text-red-500 { color: #ef4444; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; }
.bg-yellow-50 { background-color: #fefce8; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.border-blue-600 { border-color: #2563eb; }
.border-yellow-200 { border-color: #fef08a; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Width & Height */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-1 { height: 0.25rem; }
.h-4 { width: 1rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

/* Positions */
.relative { position: relative; }
.overflow-x-auto { overflow-x: auto; }

/* Display */
.hidden { display: none; }
.block { display: block; }

/* Buttons */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom Components */

/* Header */
.text-center h1 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step Progress */
.step-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-number.active {
    background-color: #2563eb;
    color: white;
}

.step-number.inactive {
    background-color: #e5e7eb;
    color: #6b7280;
}

.step-line {
    flex: 1;
    height: 0.25rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.step-line.active {
    background-color: #2563eb;
}

.step-line.inactive {
    background-color: #e5e7eb;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    max-width: 42rem;
    margin: 0 auto;
    font-size: 0.75rem;
    color: #4b5563;
}

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

/* Bike Type Selection */
.bike-type-btn {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.bike-type-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.bike-type-btn.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bike-type-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Riding Style Selection */
.riding-style-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.riding-style-btn:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.riding-style-btn.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Info Box */
.info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Input Fields */
input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input[type="number"]::placeholder {
    color: #9ca3af;
}

label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Result Box */
.result-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.result-item p:first-child {
    color: #bfdbfe;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.result-item p:last-child {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Bike Card */
.bike-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.bike-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.bike-card.selected {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.bike-card-hover {
    transition: all 0.3s ease;
}

.bike-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.bike-image {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.match-score {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
}

.bike-specs {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.bike-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 0.875rem;
}

.bike-specs-grid p:first-child {
    color: #6b7280;
}

.bike-specs-grid p:last-child {
    font-weight: 700;
    color: #111827;
}

/* Best Match Badge */
.best-match-badge {
    margin-top: 0.75rem;
    background-color: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.best-match-badge span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #854d0e;
}

/* Comparison Table */
.comparison-table {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.comparison-table table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
}

.comparison-table thead tr {
    border-bottom: 2px solid #d1d5db;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #d1d5db;
}

.btn-outline {
    background-color: white;
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn-outline:hover:not(:disabled) {
    background-color: #eff6ff;
}

.btn-compare {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-compare.selected {
    background-color: #2563eb;
    color: white;
}

.btn-compare:not(.selected) {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-compare:not(.selected):hover {
    background-color: #d1d5db;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Alert Box */
.alert-box {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.alert-icon {
    width: 3rem;
    height: 3rem;
    color: #ca8a04;
    margin: 0 auto 0.75rem;
}

/* SVG Icons */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Spacing Utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Hover Effects */
.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-blue-800:hover {
    background-color: #1e40af;
}

.hover\:text-blue-700:hover {
    color: #1d4ed8;
}

.hover\:border-blue-300:hover {
    border-color: #93c5fd;
}

.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}