/* Cards Component - Angela Tourism */

/* Tarjetas base */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tarjetas de contenido turístico */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6B35;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: #7F8C8D;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #7F8C8D;
}

.price {
    color: #27ae60;
    font-weight: 600;
}

.rating {
    color: #f39c12;
    font-weight: 600;
}

.distance {
    color: #3498db;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-1px);
}

/* Tarjetas de categorías */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #FF6B35;
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.category-name {
    font-weight: 700;
    color: #2C3E50;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.category-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6B35;
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Tarjetas de tips */
.tip-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #FF6B35;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tip-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.tip-card p {
    color: #7F8C8D;
    line-height: 1.5;
    margin: 0;
}

/* Tarjeta de ubicación */
.location-card {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.location-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-details {
    margin-bottom: 1.5rem;
}

.address-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.location-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

.location-actions {
    display: flex;
    gap: 0.75rem;
}

.location-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.location-update-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.location-share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.location-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Tarjetas de loading */
.loading-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #7F8C8D;
}

.loading-card .content-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.loading-card h3 {
    color: #2C3E50;
    margin-bottom: 0.75rem;
}

.loading-card p {
    line-height: 1.5;
    margin: 0;
}

/* Mensajes de contenido básico */
.basic-content-message {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #7F8C8D;
    margin: 2rem 0;
}

.basic-content-message .content-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    display: block;
}

.basic-content-message h3 {
    color: #2C3E50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.basic-content-message p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .card-meta {
        gap: 0.75rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .tip-card {
        padding: 1.25rem;
    }
    
    .location-card {
        padding: 1.25rem;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.875rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-icon {
        font-size: 1.75rem;
    }
    
    .basic-content-message {
        padding: 2rem 1.5rem;
    }
    
    .basic-content-message .content-icon {
        font-size: 3rem;
    }
    
    .basic-content-message h3 {
        font-size: 1.25rem;
    }
    
    .basic-content-message p {
        font-size: 1rem;
    }
}

/* Estados especiales */
.card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.card.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

.card.selected {
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.3s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card,
    .content-card,
    .category-card,
    .tip-card,
    .loading-card,
    .basic-content-message {
        background: #2c3e50;
        border-color: #4a5f7a;
    }
    
    .card-title,
    .category-name,
    .tip-card h3,
    .basic-content-message h3 {
        color: #ecf0f1;
    }
    
    .card-description,
    .tip-card p,
    .basic-content-message p,
    .loading-card {
        color: #bdc3c7;
    }
    
    .btn-secondary {
        border-color: #FF6B35;
        color: #FF6B35;
        background: transparent;
    }
    
    .btn-secondary:hover {
        background: #FF6B35;
        color: white;
    }
}
