/**
 * Stock PNG Automation - Modern UI/UX Styles (v1.3.0)
 */

/* 2-Column Responsive Layout */
.spng-layout-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

@media (max-width: 900px) {
    .spng-layout-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Left Column Preview Card */
.spng-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.spng-bg-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.spng-bg-hint {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spng-bg-pills {
    display: flex;
    gap: 0.35rem;
}

.spng-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spng-pill:hover {
    background: #f1f5f9;
}

.spng-pill.is-active {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}

.spng-canvas-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    min-height: 440px;
    background-color: #ffffff;
    background-image: 
        linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
        linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
        linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
    transition: background 0.3s ease;
}

.spng-canvas-box.is-white {
    background-image: none !important;
    background-color: #ffffff !important;
}

.spng-canvas-box.is-dark {
    background-image: none !important;
    background-color: #090d16 !important;
}

.spng-hero-image {
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    transition: transform 0.25s ease;
}

.spng-hero-image:hover {
    transform: scale(1.025);
}

/* Right Column Action Card */
.spng-action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.spng-cat-badge a {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0ea5e9 !important;
    text-decoration: none !important;
    margin-bottom: 0.5rem;
}

.spng-asset-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
}

/* Specs Row */
.spng-specs-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.spng-spec-chip {
    display: flex;
    flex-direction: column;
}

.spng-chip-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.spng-chip-data {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

/* 10-Second Timer Engine */
.spng-download-engine {
    background: #fdfefe;
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.spng-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: #0284c7;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.spng-btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.spng-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spng-btn-secondary:hover {
    background: #e2e8f0;
}

.spng-btn-secondary.is-copied {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Countdown Animated Widget */
.spng-timer-countdown {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    text-align: left;
}

.spng-counter-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.15);
}

.spng-countdown-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.spng-countdown-unit {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.spng-counter-info {
    flex: 1;
}

.spng-counter-msg {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.spng-progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.spng-progress-bar {
    width: 0%;
    height: 100%;
    background: #0284c7;
    border-radius: 999px;
    transition: width 1s linear;
}

.spng-counter-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.spng-btn-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: #10b981;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.spng-btn-success:hover {
    background: #059669;
}

.spng-license-notice {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.85rem;
    font-weight: 500;
}

.spng-svg-icon {
    width: 20px;
    height: 20px;
}

/* Tag Pills */
.spng-meta-tags-box {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.spng-meta-tags-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.spng-tag-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.spng-tag-pill {
    padding: 0.3rem 0.65rem;
    background: #f1f5f9;
    color: #475569 !important;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.spng-tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Ad Unit Containers */
.spng-ad-unit {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    margin: 1.5rem 0;
}

.spng-ad-badge {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* Modern Responsive Gallery & Masonry Grid */
.spng-gallery-wrapper {
    margin: 2rem 0;
}

.spng-filter-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    scrollbar-width: thin;
}

.spng-filter-pill {
    white-space: nowrap;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spng-filter-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.spng-filter-pill.is-active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.spng-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.spng-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spng-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.1);
}

.spng-card-canvas {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background-color: #ffffff;
    background-image: 
        linear-gradient(45deg, #f8fafc 25%, transparent 25%), 
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f8fafc 75%), 
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    text-decoration: none !important;
}

.spng-card-canvas img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.09));
    transition: transform 0.25s ease;
}

.spng-card:hover .spng-card-canvas img {
    transform: scale(1.05);
}

.spng-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

.spng-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.spng-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 0.5rem;
}

.spng-card-dl-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #0284c7 !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.spng-card-dl-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
}

.spng-card-dl-btn svg {
    width: 16px;
    height: 16px;
}

/* Related Section */
.spng-related-section {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.spng-section-header {
    margin-bottom: 1.5rem;
}

.spng-section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.spng-section-sub {
    font-size: 0.85rem;
    color: #64748b;
}
