/* UIcookies 2026 Design Modernization Layer */

/* Better typography defaults */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Modern link transitions */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Improved button styles */
.button,
.edd-submit,
input[type="submit"],
a.edd-add-to-cart {
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.button:hover,
.edd-submit:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Modern card-style download items */
.download-wrapper .edd_download {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.download-wrapper .edd_download:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Better featured image presentation */
.edd_download .edd_download_image img,
.portfolio-wrapper .portfolio-thumb img {
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.edd_download:hover .edd_download_image img {
    transform: scale(1.02);
}

/* Modernize the header */
.site-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Better navigation styling */
.main-navigation a {
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

/* Smooth page-wide transitions */
#page {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Better single download page */
.single-download .site-content {
    max-width: 100%;
}

.single-download #primary {
    padding-right: 2em;
}

/* Better post content typography */
.post-content h2,
.entry-content h2 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.post-content h3,
.entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.post-content ul,
.entry-content ul {
    padding-left: 1.5em;
}

.post-content li,
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Better purchase box */
#purchase-box {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.download-price .purchase-price {
    font-size: 1.8em;
    font-weight: 700;
}

/* Better footer */
.site-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copy {
    padding: 1.5em 0;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 100000;
    font-size: 14px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Better mobile experience */
@media (max-width: 768px) {
    .download-wrapper .edd_download {
        margin-bottom: 1.5em;
    }

    .single-download #primary {
        padding-right: 0;
    }

    .header-elements {
        display: none !important;
    }
}

/* Better scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4A90D9;
    outline-offset: 2px;
}

/* Disclaimer styling */
.disclaimer {
    font-size: 0.85em;
    color: #888;
    padding: 1em 0;
    border-top: 1px solid #eee;
    margin-top: 2em;
}
