/* Enhanced Theme Cards - Better UI for Themes Section */

/* Theme Card Container */
.theme-card-enhanced {
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-height: 380px;
}

/* Theme Thumbnail Container */
.theme-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    background: linear-gradient(145deg, #f0f2f5, #e8eaed);
    border-radius: 16px;
    border: 2px solid #c0c4c8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        inset 0 -1px 2px rgba(255,255,255,0.6);
}

.theme-thumbnail {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.theme-thumbnail-container:hover .theme-thumbnail {
    transform: scale(1.08);
}

/* Free Badge */
.theme-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.free-badge {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border: 2px solid #047857;
}

/* Theme Info Section */
.theme-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.theme-name-large {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.theme-description-text {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-price-display {
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}

.theme-quantity-owned {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 8px 0 0 0;
    text-align: center;
    padding: 6px 12px;
    background: linear-gradient(145deg, #dbeafe, #bfdbfe);
    border-radius: 8px;
    border: 1px solid #93c5fd;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -1px 2px rgba(59, 130, 246, 0.2);
}

.free-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(16,185,129,0.3);
}

.price-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(59,130,246,0.3);
}

/* Theme Actions */
.theme-actions-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.action-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border: 2px solid #047857;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(16,185,129,0.3),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.action-btn-primary:hover:not(:disabled) {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(16,185,129,0.4),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.15);
}

.action-btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(16,185,129,0.3),
        inset 0 2px 4px rgba(0,0,0,0.15);
}

.action-btn-primary:disabled {
    background: linear-gradient(145deg, #9ca3af, #6b7280);
    border-color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.action-btn-secondary {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(145deg, #f0f2f5, #e8eaed);
    color: #374151;
    border: 2px solid #c0c4c8;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.action-btn-secondary:hover {
    background: linear-gradient(145deg, #e8eaed, #d1d5db);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.9),
        inset 0 -2px 4px rgba(0,0,0,0.15);
}

.action-btn-secondary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(0,0,0,0.15);
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8eaed;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.empty-state h3 {
    font-size: 2rem;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-card-enhanced {
        min-height: 350px;
    }
    
    .theme-thumbnail-container {
        height: 160px;
    }
    
    .theme-name-large {
        font-size: 1.2rem;
    }
}


