.page-header {
    background: linear-gradient(135deg, #8ba5b3 0%, #6b8a9b 50%, #5a7884 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(155, 179, 193, 0.1) 0%, rgba(107, 138, 155, 0.05) 100%);
    pointer-events: none;
}

.manga-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.manga-author {
    font-size: 1.125rem;
    opacity: 0.9;
}

.comparison-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.store-card.best-price {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(122, 165, 146, 0.08) 0%, rgba(122, 165, 146, 0.04) 100%);
}

.store-card.best-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success);
    border-radius: var(--radius) var(--radius) 0 0;
}

.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.store-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.store-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.best-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.price-info {
    flex: 1;
}

.final-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.best-price .final-price {
    color: var(--success);
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.discount-badge {
    background: var(--warning);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-decoration: none !important;
}

.store-details {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--text-light);
    flex: 1;
}

.detail-value {
    font-weight: 600;
    color: var(--text);
    text-align: right;
    flex: 1;
}

.details-accordion {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header {
    background: var(--bg-light);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    user-select: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    background: var(--bg);
}

.accordion-icon {
    transition: transform 0.2s;
    font-size: 0.875rem;
}

.details-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 1rem;
    background: var(--bg);
}

.detail-section {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.volume-info {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-subtle);
}

.volume-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-breakdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.price-row:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.discount-price {
    color: var(--success);
    font-weight: 700;
}

.savings-amount {
    color: var(--danger);
    font-weight: 700;
}

.discount-info {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.savings-info {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.breakdown-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.volume-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.volume-stat-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.volume-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.volume-stat-card.free {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.02) 100%);
}

.volume-stat-card.discounted {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.volume-stat-card.paid {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.volume-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.volume-stat-card.free .volume-number {
    color: var(--danger);
}

.volume-stat-card.discounted .volume-number {
    color: var(--warning);
}

.volume-stat-card.paid .volume-number {
    color: var(--primary);
}

.volume-type {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.volume-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.benefits-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.benefits-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-tags {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.benefit-tag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.benefit-tag {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.benefit-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.benefit-tag.free {
    background: var(--danger);
    color: white;
}

.benefit-tag.discount {
    background: var(--warning);
    color: white;
}

.benefit-note {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    margin-top: 0.25rem;
}

.purchase-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.purchase-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.best-price .purchase-btn {
    background: var(--success);
}

.best-price .purchase-btn:hover {
    background: #059669;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.summary-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.comparison-summary {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .manga-title {
        font-size: 1.5rem;
    }
    
    .manga-author {
        font-size: 1rem;
    }
    
    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .store-info {
        width: 100%;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .final-price {
        font-size: 1.5rem;
    }
    
    .store-details {
        padding: 0.75rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
        text-align: left;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .volume-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .volume-stat-card {
        padding: 0.875rem;
    }
    
    .volume-number {
        font-size: 1.5rem;
    }
    
    .benefits-tags {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .benefit-tag-container {
        width: 100%;
        max-width: 280px;
    }
    
    .benefit-tag {
        justify-content: center;
        padding: 0.75rem 1rem;
        width: 100%;
    }
    
    .price-breakdown {
        padding: 0.875rem;
    }
    
    .volume-info {
        padding: 1rem;
    }
    
    .accordion-header {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .accordion-content {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .volume-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .volume-number {
        font-size: 1.25rem;
    }
    
    .volume-type {
        font-size: 0.8rem;
    }
    
    .volume-note {
        font-size: 0.7rem;
    }
    
    .price-row {
        padding: 0.625rem 0;
    }
    
    .price-label,
    .price-value {
        font-size: 0.85rem;
    }
} 