/* Kahve Profil Widget CSS - Ultra Modern Design v2.0 */

/* Ana widget konteyner */
.kahve-profile-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 40px;
    margin: 24px 0;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.kahve-profile-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6, #f59e0b, #ef4444);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    border-radius: 28px 28px 0 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Loading states */
.kahve-profile-widget.loading {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.kahve-profile-widget.loading-steps {
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-loading-container {
    max-width: 500px;
    width: 100%;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-20px);
    opacity: 0.5;
}

.step-item.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(14, 165, 233, 0.1));
    border-color: #14b8a6;
    color: #0f172a;
    transform: translateX(0);
    opacity: 1;
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.2);
    animation: stepPulse 1.5s ease-in-out infinite;
}

.step-item.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-color: #10b981;
    color: #065f46;
    transform: translateX(0);
    opacity: 0.9;
    animation: none;
}

.step-item.completed::before {
    content: '✅ ';
    margin-right: 8px;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(20, 184, 166, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(20, 184, 166, 0.4);
        transform: translateX(0) scale(1.02);
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loading-spinner {
    font-size: 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: coffeeSpiral 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.3));
}

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

@keyframes coffeeSpiral {
    0% { 
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.3));
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.4));
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        filter: drop-shadow(0 8px 20px rgba(139, 69, 19, 0.5));
    }
    75% { 
        transform: rotate(270deg) scale(1.1);
        filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.4));
    }
    100% { 
        transform: rotate(360deg) scale(1);
        filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.3));
    }
}

.loading-text {
    font-size: 20px;
    color: #475569;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error states */
.kahve-profile-widget.error {
    text-align: center;
    padding: 80px 40px;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-icon {
    font-size: 64px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.error-container h3 {
    color: #dc2626;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.error-container p {
    color: #64748b;
    margin: 0;
    font-size: 18px;
    max-width: 400px;
    line-height: 1.6;
}

/* Buttons */
.retry-btn, .login-btn {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.retry-btn:hover, .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
}

.login-btn {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.3);
}

.login-btn:hover {
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
}

/* No data state */
.kahve-profile-widget.no-data {
    text-align: center;
    padding: 80px 40px;
}

.no-data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.no-data-icon {
    font-size: 64px;
    opacity: 0.8;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.no-data-container h3 {
    color: #475569;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.no-data-container p {
    color: #64748b;
    margin: 0;
    font-size: 18px;
    max-width: 500px;
    line-height: 1.6;
}

.help-text {
    font-size: 16px !important;
    font-style: italic;
    opacity: 0.8;
}

/* Hero section */
.profile-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.6) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.hero-header h2 {
    color: #1e293b;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: #64748b;
    font-size: 18px;
    margin: 0 0 32px 0;
    font-weight: 500;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section headers */
.section-title {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-powered-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    animation: pulse 2s infinite;
}

.ai-powered-badge .ai-powered-badge {
    display: none;  
}

.ai-powered-badge.basic {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
    }
}

/* AI Insights section - HERO VERSION */
.insights-section {
    margin-bottom: 48px;
    position: relative;
}

.insights-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(168, 85, 247, 0.02));
    border-radius: 24px;
    z-index: -1;
}

.insights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
    backdrop-filter: blur(15px);
    padding: 32px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
}

.insight-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    border-radius: 20px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.insight-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(124, 58, 237, 0.15),
        0 8px 32px rgba(168, 85, 247, 0.1);
}

.insight-item:nth-child(even) {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(20, 184, 166, 0.03));
}

.insight-item:nth-child(even)::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.1));
}

.insight-icon {
    font-size: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.insight-text {
    color: #1e293b;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.insight-text::first-letter {
    font-size: 1.3em;
    font-weight: 700;
    color: #7c3aed;
}

/* Top Products section */
.top-products-section {
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 8px;
}

.product-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 2px dashed #cbd5e1;
}

.placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-quantity {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Taste profile section */
.taste-profile-section {
    margin-bottom: 40px;
}

.taste-chart {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.taste-bar-item {
    margin-bottom: 20px;
}

.taste-bar-item:last-child {
    margin-bottom: 0;
}

.taste-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #475569;
}

.percentage {
    font-size: 14px;
    color: #14b8a6;
    font-weight: 700;
    background: rgba(20, 184, 166, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.taste-bar {
    height: 16px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.taste-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.taste-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.taste-bar-fill.espresso {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.taste-bar-fill.filter {
    background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.taste-bar-fill.turkish {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.taste-bar-fill.instant {
    background: linear-gradient(135deg, #64748b, #475569);
}

.taste-bar-fill.capsule {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.taste-summary {
    margin-top: 24px;
    padding: 20px;
    background: rgba(20, 184, 166, 0.05);
    border-radius: 16px;
    border-left: 4px solid #14b8a6;
}

.taste-summary p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    font-weight: 500;
}

/* Behavior section */
.behavior-section {
    margin-bottom: 40px;
}

.behavior-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.behavior-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.behavior-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.behavior-icon {
    font-size: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.behavior-content {
    flex: 1;
}

.behavior-content strong {
    display: block;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.behavior-content p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* Smart Recommendations */
.smart-recommendations-section,
.trending-section,
.discovery-section,
.bundles-section {
    background: linear-gradient(135deg, rgba(55, 50, 47, 0.03) 0%, rgba(139, 69, 19, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
    max-width: 100%;
}

/* 4 ürün için optimal layout */
@media (min-width: 1200px) {
    .recommendations-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.recommendation-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: #37322f;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(139, 69, 19, 0.1), 0 10px 10px -5px rgba(139, 69, 19, 0.04);
    border-color: rgba(139, 69, 19, 0.25);
}

.recommendation-card.similar {
    border-left: 4px solid #4ade80;
}

.recommendation-card.trending {
    border-left: 4px solid #f59e0b;
}

.recommendation-card.discovery {
    border-left: 4px solid #8b5cf6;
}

.recommendation-card .product-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(139, 69, 19, 0.05);
}

.recommendation-card .product-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(139, 69, 19, 0.6);
}

.recommendation-card .placeholder-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.recommendation-card .placeholder-text {
    font-size: 10px;
    font-weight: 500;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content .product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: #37322f;
}

.recommendation-reason {
    font-size: 12px;
    color: rgba(55, 50, 47, 0.7);
    margin: 0 0 8px 0;
}

.recommendation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.match-score,
.trending-score {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.trending-score {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.category-tag {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.product-price {
    font-weight: 600;
    color: #37322f;
}

/* Smart Bundles */
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bundle-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 69, 19, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(139, 69, 19, 0.1), 0 10px 10px -5px rgba(139, 69, 19, 0.04);
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bundle-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #37322f;
}

.bundle-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bundle-description {
    color: rgba(55, 50, 47, 0.7);
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.bundle-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
}

.bundle-value {
    font-weight: 600;
    color: #8b5a3c;
    font-size: 14px;
}

.bundle-reason {
    color: rgba(55, 50, 47, 0.6);
    font-style: italic;
}

.bundle-cta {
    width: 100%;
    background: linear-gradient(135deg, #8b5a3c 0%, #a16a4a 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bundle-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(139, 90, 60, 0.4);
}

/* Stock Status */
.stock-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 6px;
    text-align: center;
    animation: stockPulse 2s ease-in-out infinite;
}

.stock-status.in-stock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    animation: none;
    display:none;
}

.stock-status.normal-stock {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    animation: none;
}

.stock-status.limited-stock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    animation: stockPulse 2s ease-in-out infinite;
}

.stock-status.low-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: urgentPulse 1s ease-in-out infinite;
}

.stock-status.out-of-stock {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    animation: none;
    opacity: 0.7;
}

@keyframes stockPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes urgentPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

/* Footer */
.profile-footer {
    text-align: center;
    padding: 32px 0 0 0;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-text {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    font-weight: 600;
}

.footer-help {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.refresh-btn {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(226, 232, 240, 0.6));
    color: #475569;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.9), rgba(203, 213, 225, 0.7));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .kahve-profile-widget {
        margin: 16px 0;
        padding: 24px;
        border-radius: 20px;
    }
    
    .hero-header h2 {
        font-size: 28px;
    }
    
    .stats-row {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .recommendation-card {
        padding: 12px;
        gap: 12px;
    }
    
    .recommendation-card .product-image,
    .recommendation-card .product-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bundle-card {
        padding: 16px;
    }
    
    .behavior-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-item {
        padding: 20px;
    }
    
    .taste-chart {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .kahve-profile-widget {
        margin: 12px 0;
        padding: 20px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .insight-item {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .taste-chart {
        padding: 20px;
    }
    
    .behavior-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendation-card .product-image,
    .recommendation-card .product-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .recommendation-content .product-name {
        font-size: 13px;
    }
    
    .recommendation-reason {
        font-size: 11px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states */
.kahve-profile-widget:focus-within {
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 4px rgba(20, 184, 166, 0.2);
}

.retry-btn:focus,
.refresh-btn:focus,
.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

/* Print styles */
@media print {
    .kahve-profile-widget {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }
    
    .retry-btn,
    .refresh-btn {
        display: none;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Smart Reorder Predictions Styles */
.smart-reorder-section {
    margin-bottom: 40px;
}

.reorder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.reorder-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.reorder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64748b, #94a3b8);
    transition: all 0.4s ease;
}

.reorder-card.high-urgency::before {
    background: linear-gradient(90deg, #ef4444, #f97316);
    animation: urgentPulse 2s ease-in-out infinite;
}

.reorder-card.medium-urgency::before {
    background: linear-gradient(90deg, #f59e0b, #eab308);
    animation: mediumPulse 3s ease-in-out infinite;
}

.reorder-card.low-urgency::before {
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    animation: lowPulse 4s ease-in-out infinite;
}

.reorder-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(20, 184, 166, 0.3);
}

.reorder-urgency {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
}

.urgency-badge.high-urgency {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(249, 115, 22, 0.15));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.urgency-badge.medium-urgency {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.15));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.urgency-badge.low-urgency {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(14, 165, 233, 0.15));
    color: #0891b2;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.days-left {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.reorder-content {
    flex: 1;
}

.reorder-content .product-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.reorder-message {
    font-size: 15px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-weight: 500;
}

.reorder-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.last-order,
.total-orders {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.reorder-action {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.quick-reorder-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: 0 4px 16px rgba(100, 116, 139, 0.2);
}

.quick-reorder-btn.high-urgency {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.quick-reorder-btn.medium-urgency {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.quick-reorder-btn.low-urgency {
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.quick-reorder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.reorder-explanation {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.8) 0%, rgba(249, 250, 251, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(209, 213, 219, 0.3);
    margin-top: 24px;
}

.explanation-text {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
}

/* Reorder Animations */
@keyframes mediumPulse {
    0%, 100% {
        background: linear-gradient(90deg, #f59e0b, #eab308);
        opacity: 1;
    }
    50% {
        background: linear-gradient(90deg, #fbbf24, #f59e0b);
        opacity: 0.8;
    }
}

@keyframes lowPulse {
    0%, 100% {
        background: linear-gradient(90deg, #14b8a6, #0ea5e9);
        opacity: 1;
    }
    50% {
        background: linear-gradient(90deg, #06b6d4, #14b8a6);
        opacity: 0.9;
    }
}

/* Mobile Responsive for Smart Reorder */
@media (max-width: 768px) {
    .reorder-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .reorder-card {
        padding: 20px;
    }
    
    .urgency-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .reorder-content .product-name {
        font-size: 16px;
    }
    
    .reorder-message {
        font-size: 14px;
    }
    
    .quick-reorder-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .reorder-urgency {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .days-left {
        align-self: flex-end;
    }
}

/* Achievements Section Styles */
.achievements-section {
    margin-bottom: 40px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.achievement-item.rare {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.05) 100%);
}

.achievement-item.epic {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(196, 181, 253, 0.05) 100%);
}

.achievement-item.legendary {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(252, 211, 77, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.achievement-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    flex-shrink: 0;
}

.achievement-item.rare .achievement-badge {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.achievement-item.epic .achievement-badge {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.achievement-item.legendary .achievement-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    animation: legendaryGlow 2s ease-in-out infinite;
}

.achievement-icon {
    font-size: 28px;
    z-index: 2;
}

.rarity-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 16px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.achievement-content {
    flex: 1;
}

.achievement-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.achievement-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

@keyframes legendaryGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    }
}

/* Daily Wisdom Section Styles */
.daily-wisdom-section {
    margin-bottom: 40px;
}

.wisdom-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9, #8b5cf6);
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
}

.wisdom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.wisdom-category {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(20, 184, 166, 0.1));
    color: #0891b2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.wisdom-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.wisdom-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.wisdom-content {
    font-size: 15px;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-weight: 500;
}

.seasonal-tip {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.seasonal-icon {
    font-size: 16px;
    margin-top: 2px;
}

.seasonal-tip p {
    font-size: 13px;
    color: #059669;
    margin: 0;
    line-height: 1.5;
    font-weight: 600;
}

.ai-generated-indicator {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11px;
    color: #7c3aed;
    text-align: center;
    margin-top: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wisdom-card.ai-generated {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.wisdom-card.ai-generated::before {
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
    background-size: 200% 200%;
    animation: aiShimmer 3s ease infinite;
}

.wisdom-card.static-content {
    border-color: rgba(100, 116, 139, 0.2);
    box-shadow: 0 8px 32px rgba(100, 116, 139, 0.1);
}

.wisdom-card.static-content::before {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

@keyframes aiShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.difficulty-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.başlangıç,
.difficulty-badge.temel {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.15));
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: none;
}

.difficulty-badge.orta,
.difficulty-badge.profesyonel {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.15));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.difficulty-badge.uzman,
.difficulty-badge.ileri {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.difficulty-badge.genel,
.difficulty-badge.kültür,
.difficulty-badge.bilgi,
.difficulty-badge.günlük {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Mobile Responsive for Achievements & Daily Wisdom */
@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .achievement-item {
        padding: 16px;
        gap: 12px;
    }
    
    .achievement-badge {
        width: 50px;
        height: 50px;
    }
    
    .achievement-icon {
        font-size: 24px;
    }
    
    .rarity-icon {
        font-size: 14px;
    }
    
    .achievement-title {
        font-size: 15px;
    }
    
    .achievement-description {
        font-size: 13px;
    }
    
    .wisdom-card {
        padding: 20px;
    }
    
    .wisdom-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .wisdom-title {
        font-size: 16px;
    }
    
    .wisdom-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .achievements-grid {
        gap: 10px;
    }
    
    .achievement-item {
        padding: 14px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .wisdom-card {
        padding: 16px;
    }
    
    .seasonal-tip {
        padding: 10px 12px;
    }
}