/*
 * Stylesheet for Market My Team QR Code Generator Plugin
 * Version 1.1 - Improved centering, responsiveness, and aesthetics.
 */

/* --- 1. Container Styling (Centering and Aesthetics) --- */
.mty-qr-container {
    max-width: 400px;
    margin: 30px auto; /* Centers the whole widget horizontally */
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center; /* Centers inline content (like the QR code) */
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); /* Softer, slightly larger shadow */
    transition: box-shadow 0.3s ease-in-out;
}

.mty-qr-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Subtle lift on hover */
}

/* --- 2. QR Code Inner Div (For Centering the Canvas) --- */
/* This is necessary because qrcode.js generates a fixed-size canvas */
#mty-qrcode-target {
    display: inline-block; /* Makes the div only as wide as its content */
    margin: 15px auto;
    padding: 10px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #f7f7f7;
    /* Ensure the canvas inside is centered and well-contained */
}

/* --- 3. Buttons and Options --- */
.mty-qr-download-options {
    display: flex;
    flex-direction: row; /* Buttons side-by-side */
    justify-content: center; /* Centers the buttons */
    gap: 15px; /* Increased space between buttons */
    margin-top: 25px;
}

.mty-qr-button {
    cursor: pointer;
    font-weight: 600; /* Slightly less bold */
    padding: 12px 20px; /* Slightly larger padding */
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.mty-qr-button:active {
    transform: translateY(1px); /* Simple press effect */
}

/* Primary Button (Download PNG) */
#mty-download-png {
    background-color: #334155; /* Slate Blue/Gray */
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(51, 65, 85, 0.3);
}

#mty-download-png:hover {
    background-color: #1e293b; /* Darker slate on hover */
}

/* Secondary Button (Download Print-Quality) */
#mty-download-svg {
    background-color: #64748b; /* Lighter Slate Gray */
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(100, 116, 139, 0.3);
}

#mty-download-svg:hover {
    background-color: #475569; /* Darker Lighter Slate on hover */
}

/* --- 4. Typography --- */
.mty-qr-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b; /* Darker, more professional color */
    margin-bottom: 10px;
}

.mty-qr-note {
    font-size: 0.8rem;
    color: #94a3b8; /* Subtle light gray note */
    margin-top: 15px;
}

/* --- 5. Responsiveness: Stack buttons on small screens --- */
@media (max-width: 480px) {
    .mty-qr-download-options {
        flex-direction: column;
        gap: 10px;
    }
    .mty-qr-button {
        width: 100%;
    }
}