/*
Theme Name: WP Automation Lab Premium Theme
Theme URI: https://wpautomationlab.com
Author: Richard Lee Garcia Groups, LLC
Author URI: https://rlggroups.com
Description: A premium, ultra-lightweight custom framework for software products and plugin marketplace platforms.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wpal
*/

body {
    background-color: #0B0F19;
    color: #F3F4F6;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.wpal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Card Layout Components */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.plugin-card {
    background: #141B2D;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plugin-card:hover {
    transform: translateY(-4px);
    border-color: #4F46E5;
}

.wpal-btn {
    display: inline-block;
    background: #4F46E5;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.wpal-btn:hover {
    background: #4338CA;
}

/* ==========================================================================
   Responsive Grid & Typography Optimization Breakpoints
   ========================================================================== */

/* Tablet Optimization (Large Viewports) */
@media screen and (max-width: 1024px) {
    .wpal-container {
        padding: 0 1.5rem;
    }
    .plugin-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    h1 {
        font-size: 2.8rem !important;
    }
}

/* Mobile Devices Optimization (Standard Smartphone Screens) */
@media screen and (max-width: 768px) {
    main.wpal-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 2rem 1rem !important;
    }
    
    .plugin-grid {
        grid-template-columns: 1fr !important; 
        gap: 1.25rem;
    }
    
    h1 {
        font-size: 2.2rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    
    header div.wpal-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Advanced Interface Layout Tweaks
   ========================================================================== */

.plugin-card {
    position: relative;
    overflow: hidden;
    background: #141B2D;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #818CF8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plugin-card:hover::before {
    opacity: 1;
}

.plugin-card:hover {
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08), 0 1px 1px rgba(255, 255, 255, 0.1) inset;
}

.plugin-card a {
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.plugin-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #4F46E5;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.plugin-card:hover a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ==========================================================================
   Premium Marketplace Dynamic Card & Optimized Thumbnail Dimensions
   ========================================================================== */

/* Upgraded Micro Thumbnail Frame Parameters */
.plugin-card .card-thumb-frame {
    width: 140px !important;      /* was 80px — increase further if you want it bigger */
    height: 140px !important;     /* keep equal to width for a square */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;          /* slightly larger radius to match the bigger frame */
    margin-bottom: 1.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Micro Icon Image Restrictions */
.plugin-card .card-thumb-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    padding: 4px;               /* small bump so it doesn't touch the frame edge */
    transform: scale(1.1);      /* reduced from 1.25 since the frame itself is now bigger */
    transition: transform 0.3s ease;
}

/* Hover interaction tracking at card component level */
.plugin-card:hover .card-thumb-frame {
    transform: scale(1.12);      /* Sophisticated, fluid enlargement on hover */
    border-color: #4F46E5;       /* Outer boundary ring shifts to brand indigo */
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); /* Premium aura glow effect */
    background: rgba(79, 70, 229, 0.06);
}

.plugin-card:hover .card-thumb-frame img {
    transform: scale(1.03);      /* Micro secondary layer scaling for extra depth */
}

/* Ensure actions text and links sync gracefully */
.plugin-card:hover .card-action-anchor {
    color: #818CF8 !important;   /* Shift to lighter indigo on card hover */
}
/* ==========================================================================
   Easy Digital Downloads Payment Interface Integration
   ========================================================================== */

/* Standardize Purchase Button Matrices */
.edd-submit, .edd-submit.button, .edd-submit.button.blue, a.edd-submit {
    display: inline-block !important;
    background: #4F46E5 !important;
    color: #FFFFFF !important;
    padding: 0.85rem 2rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    border: none !important;
    transition: background 0.2s, transform 0.2s !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2) !important;
}

.edd-submit:hover, .edd-submit.button:hover, a.edd-submit:hover {
    background: #4338CA !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3) !important;
}

/* Style checkout form input fields */
.edd-input, #edd_checkout_form input[type="text"], #edd_checkout_form input[type="email"] {
    background: #141B2D !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFF !important;
    border-radius: 6px !important;
    padding: 0.75rem !important;
    font-family: 'Inter', sans-serif !important;
}

.edd-input:focus {
    border-color: #4F46E5 !important;
    outline: none !important;
}
