
/* --- General Reset & Layout --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a; /* Dark background for TCG vibe */
    color: #eee;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Top: Logo --- */
header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to bottom, #000, #1a1a1a);
}

header img {
    max-width: 300px;
    height: auto;
}

/* --- Main Content Area --- */
main {
    display: flex;
    flex: 1;
    flex-wrap: wrap; /* Stack on mobile */
    padding: 40px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* --- Left Half: Card Hand --- */
.left-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    padding-top: 40px; /* Space for hover movement */
}

.hand {
    position: relative;
    display: flex;
    justify-content: center;
    /* Overlap cards */
}

.card-wrapper {
    position: relative;
    width: 160px; /* Adjust based on your image ratio */
    height: 224px;
    margin-left: -40px; /* The overlap */
    transition: transform 0.3s ease, z-index 0s;
    cursor: pointer;
    transform-origin: bottom center;
    /* Default shadow */
    filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.5));
}

.card-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Rounded card corners */
    border: 1px solid #444;
}

.card-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Card Rotations (Fan Effect) --- */
/* We assume exactly 4 cards */
.card-wrapper:nth-child(1) { transform: rotate(-15deg) translateY(20px); z-index: 1; }
.card-wrapper:nth-child(2) { transform: rotate(-5deg) translateY(0px); z-index: 2; }
.card-wrapper:nth-child(3) { transform: rotate(5deg) translateY(0px); z-index: 3; }
.card-wrapper:nth-child(4) { transform: rotate(15deg) translateY(20px); z-index: 4; }

/* --- Hover Effects --- */
/* Move up, maintain rotation, increase z-index to show full card */
.card-wrapper:nth-child(1):hover { transform: rotate(-15deg) translateY(-30px) scale(1.1); z-index: 10; }
.card-wrapper:nth-child(2):hover { transform: rotate(-5deg) translateY(-30px) scale(1.1); z-index: 10; }
.card-wrapper:nth-child(3):hover { transform: rotate(5deg) translateY(-30px) scale(1.1); z-index: 10; }
.card-wrapper:nth-child(4):hover { transform: rotate(15deg) translateY(-30px) scale(1.1); z-index: 10; }


/* --- Right Half: Author --- */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

.author-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.speech-bubble {
    position: relative;
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 15px;
    max-width: 80%;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* The Triangle for the speech bubble */
.speech-bubble::after {
    content: '';
    position: absolute;
    top: -10px; /* Position at top */
    left: 50%;
    margin-left: -10px;
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: #fff transparent;
    display: block;
    width: 0;
}

/* --- Bottom: Footer --- */
footer {
    background-color: #111;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
    border: 1px solid #555;
}

.btn:hover {
    background-color: #555;
    border-color: #777;
}

.btn-buy {
    background-color: #2c5e2e;
    border-color: #3e8e41;
}
.btn-buy:hover {
    background-color: #3e8e41;
}