/**
 * Frontend styles for QR Code Tracker shortcodes
 */

.qrc-qr-code,
.qrc-qr-code-link {
    margin: 20px 0;
    line-height: 0;
}

.qrc-qr-code img,
.qrc-qr-code-link img {
    max-width: 100%;
    height: auto;
    display: block;
}

.qrc-qr-code.qrc-center,
.qrc-qr-code-link.qrc-center {
    text-align: center;
}

.qrc-qr-code.qrc-center img,
.qrc-qr-code-link.qrc-center img {
    display: inline-block;
}

.qrc-qr-code-link a {
    display: inline-block;
    line-height: 0;
}

.qrc-qr-code-link a:hover img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.qrc-download {
    margin-top: 10px;
    line-height: normal;
}

.qrc-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.qrc-download-btn:hover {
    background-color: #005a87;
}

.qrc-error {
    padding: 20px;
    background-color: #fee;
    border: 1px solid #c00;
    border-radius: 4px;
    color: #c00;
    margin: 20px 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .qrc-qr-code img,
    .qrc-qr-code-link img {
        max-width: 100%;
        width: auto;
    }
}

/* Elementor compatibility */
.elementor-widget-container .qrc-qr-code,
.elementor-widget-container .qrc-qr-code-link {
    margin: 0;
}

/* Gutenberg compatibility */
.wp-block .qrc-qr-code,
.wp-block .qrc-qr-code-link {
    margin: 0;
}

