/* CSS para o plugin Creature Card Game */

/* Estilos gerais */
.ccg-card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Estilos para cartas na galeria */
.ccg-card-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    position: relative;
}

.ccg-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.ccg-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ccg-card-info {
    padding: 15px;
}

.ccg-card-title {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.ccg-card-attributes-preview {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
}

.ccg-card-attribute-preview {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}

.ccg-attribute-label {
    font-weight: bold;
    margin-right: 5px;
}

/* Estilos para cartas bloqueadas */
.ccg-card-locked {
    position: relative;
}

.ccg-card-locked .ccg-card-thumbnail {
    filter: blur(5px);
    opacity: 0.7;
}

.ccg-card-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.4);
}

.ccg-card-locked-overlay .dashicons {
    font-size: 40px;
    color: #fff;
}

/* Estilos para página individual da carta */
.ccg-single-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ccg-single-card .entry-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.ccg-card-rarity {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

.ccg-rarity-basica {
    background-color: #a0a0a0;
    color: #fff;
}

.ccg-rarity-rara {
    background-color: #4a90e2;
    color: #fff;
}

.ccg-rarity-lendaria {
    background: linear-gradient(45deg, #f6b73c, #e25822);
    color: #fff;
}

.ccg-card-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.ccg-card-display {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.ccg-card-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ccg-card-details {
    flex: 1;
    min-width: 300px;
}

.ccg-card-attributes {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.ccg-card-attribute {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.ccg-card-attack {
    background-color: #ff6b6b;
    color: white;
}

.ccg-card-health {
    background-color: #51cf66;
    color: white;
}

.ccg-card-cost {
    background-color: #339af0;
    color: white;
}

.ccg-attribute-label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.ccg-attribute-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
}

.ccg-crystal-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 2L2 12l10 10 10-10L12 2z"/></svg>');
    background-size: contain;
    vertical-align: middle;
}

.ccg-card-abilities, 
.ccg-card-description {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.ccg-card-abilities h3, 
.ccg-card-description h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Estilos para cartas bloqueadas (página individual) */
.ccg-card-locked-view {
    text-align: center;
    padding: 30px;
}

.ccg-card-locked-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.ccg-card-locked-image {
    filter: blur(8px);
    opacity: 0.7;
    max-width: 300px;
    border-radius: 15px;
}

.ccg-card-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ccg-card-locked-overlay .dashicons {
    font-size: 60px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ccg-card-placeholder-locked {
    width: 300px;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.ccg-unlock-options {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.ccg-unlock-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ccg-unlock-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.ccg-unlock-message.success {
    background-color: #d4edda;
    color: #155724;
}

.ccg-unlock-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para perfil BuddyPress */
.ccg-profile-points {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 10px;
}

.ccg-profile-points-icon {
    margin-right: 5px;
    color: #f6b73c;
}

.ccg-profile-cards-count {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.ccg-profile-cards-icon {
    margin-right: 5px;
    color: #4a90e2;
}

.ccg-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.ccg-profile-badge-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ccg-profile-badge-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsividade */
@media (max-width: 768px) {
    .ccg-card-content {
        flex-direction: column;
    }
    
    .ccg-card-attributes {
        flex-direction: row;
    }
}

/* Estilos para tema neon */
:root {
    --neon-purple: #9d4edd;
    --neon-pink: #ff5e78;
    --neon-green: #39ff14;
    --dark-bg: #1a1a2e;
}

.ccg-neon-theme .ccg-card-item {
    background-color: var(--dark-bg);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

.ccg-neon-theme .ccg-card-title {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 94, 120, 0.7);
}

.ccg-neon-theme .ccg-card-attribute-preview {
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--neon-purple);
}

.ccg-neon-theme .ccg-single-card {
    background-color: var(--dark-bg);
    color: #fff;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.ccg-neon-theme .ccg-card-attack {
    background-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 94, 120, 0.7);
}

.ccg-neon-theme .ccg-card-health {
    background-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
    color: #000;
}

.ccg-neon-theme .ccg-card-cost {
    background-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.7);
}

.ccg-neon-theme .ccg-card-abilities, 
.ccg-neon-theme .ccg-card-description {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-purple);
}

.ccg-neon-theme .ccg-card-abilities h3, 
.ccg-neon-theme .ccg-card-description h3 {
    color: var(--neon-pink);
    border-bottom: 2px solid var(--neon-purple);
}
