/* Estilos gerais da página (não interferem com o Bootstrap) */
.custom-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-title {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.custom-subtitle {
    color: #fff;
    font-style: italic;
    margin-bottom: 30px;
    text-align: center;
}

/* Estilo principal */
.mtg-card-main {
    background-image: url('/imagens/bgCard-mobile.jpg'); 
    background-size: 100% 100%; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@media (min-width: 769px) {
    .mtg-card-main {
        background-image: url('/imagens/bgCard-desktop.jpg');
    }
}

/* Estilos encapsulados para a carta - prefixo mtg- */
.mtg-card-container {
    perspective: 1500px;
    width: 100%;
    max-width: 400px;
    /* margin: 0 auto 30px; */
    margin: 0 auto 0.5rem;
}

.mtg-card {
    width: 100%;
    height: 560px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.mtg-card:hover {
    /* transform: rotateY(180deg); */
}

.mtg-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.mtg-card-front {
    background: linear-gradient(145deg, #1e1e1e, #2c2c2c);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mtg-card-back {
    background: linear-gradient(145deg, #2a0a0a, #0a0a2a);
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Texturas e padrões */
.mtg-card-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.2) 0px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.15) 0px, transparent 3px);
    background-size: 30% 30%, 40% 40%;
    z-index: 1;
}

.mtg-card-border {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(184, 134, 11, 0.5);
    border-radius: 15px;
    z-index: 3;
    pointer-events: none;
}

/* Conteúdo da carta */
.mtg-card-title {
    color: #ffd700;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 4;
    position: relative;
}

.mtg-card-art {
    height: 200px;
    background: linear-gradient(to bottom, #654321, #42210b);
    border: 2px solid rgba(160, 82, 45, 0.6);
    border-radius: 12px; /* Alterado de 12px */
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    z-index: 4;
}

.mtg-card-art-content {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(205, 133, 63, 0.3) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(210, 105, 30, 0.3) 0%, transparent 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d9bb84;
    font-size: 50px;
}

.mtg-card-type {
    color: #fff;
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
    z-index: 4;
    position: relative;
    font-size: 16px;
}

.mtg-card-text {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 69, 19, 0.5);
    border-radius: 10px;
    padding: 12px;
    color: #f1f1f1;
    font-size: 14px;
    flex-grow: 1;
    z-index: 4;
    position: relative;
    line-height: 1.4;
}

.mtg-card-flavor {
    font-style: italic;
    margin-top: 10px;
    color: #d9bb84;
    text-align: center;
    font-size: 13px;
}

.mtg-card-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    z-index: 4;
    position: relative;
}

.mtg-mana-cost {
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border: 2px solid #c5c5c5;
    font-size: 16px;
}

.mtg-power-toughness {
    background: linear-gradient(145deg, #991b1b, #dc2626);
    width: 70px;
    height: 35px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    border: 2px solid #c5c5c5;
    font-size: 16px;
}

/* Parte de trás da carta */
.mtg-magic-logo {
    width: 70%;
    height: 70%;
    background:
        radial-gradient(circle at center, #0a0a2a 30%, #2a0a0a 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: gold;
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 8px solid gold;
}

.mtg-instructions {
    margin-top: 20px;
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.mtg-instructions i {
    color: #ffd700;
    margin-right: 10px;
}

/* Cards de exemplo com Bootstrap - sem alterar o estilo padrão */
.mtg-example-cards .card {
    transition: transform 0.3s;
}

.mtg-example-cards .card:hover {
    transform: translateY(-5px);
}

.mtg-card-collection {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

/* Elementos Inseridos */
.mtg-card-notify {
    background: linear-gradient(to bottom, #654321, #42210b);
    width: 50px;
    padding: 0.5rem 0.75rem 0.5rem 0;
    border-radius: 0 .5rem .5rem 0;
    text-align: end;
    position: absolute;
    top: 20px;
    right: -50px;
    z-index: -100;
}

.icon-box {
    /* background-color: #d1d2d4;  */
    background-color: var(--bs-gray-300);
    padding: 0.25rem; 
    border-radius: 5px;
    border: 1px solid #000;
}
