/*=========================================================
  Aspinal Software
  File: products.css
  Description: Styles for Products Page (Pricing & Changelog)
=========================================================*/

/* --------------------------------------------------------
   Products Hero
-------------------------------------------------------- */
.products-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.products-hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: var(--line-height-tight);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-hero p {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 600px;
}

/* --------------------------------------------------------
   Pricing Section
-------------------------------------------------------- */
.pricing-section {
    padding: 60px 0 120px;
    position: relative;
    z-index: 2;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(12, 12, 12, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Decorative Wireframe */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: inherit;
    overflow: hidden;
    background: 
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 20px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: var(--transition);
}

.pricing-card:hover {
    background: rgba(18, 18, 18, 0.6);
    border-color: rgba(229, 184, 75, 0.15);
    transform: translateY(-6px);
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-header, .pricing-features, .pricing-action {
    position: relative;
    z-index: 2;
}

.pricing-header {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 32px;
}

.pricing-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 16px;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(229, 184, 75, 0.2);
}

.pricing-header .price span {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    font-weight: 400;
    text-shadow: none;
}

.pricing-header p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text);
    font-size: var(--font-size-md);
}

.pricing-features li.disabled {
    color: var(--color-text-dim);
}

.pricing-features .check {
    color: var(--color-gold);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(229, 184, 75, 0.5);
}

.pricing-features .cross {
    color: var(--color-text-dim);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Pro Card Styling */
.pro-card {
    border-color: rgba(229, 184, 75, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(229, 184, 75, 0.03);
}

.pro-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 184, 75, 0.8), transparent);
    z-index: 3;
}

.pro-card:hover {
    border-color: rgba(229, 184, 75, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(229, 184, 75, 0.15), inset 0 0 40px rgba(229, 184, 75, 0.05);
}

.pro-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #000;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 24px;
    border-radius: 99px;
    box-shadow: 0 8px 20px rgba(229, 184, 75, 0.4);
    z-index: 10;
    white-space: nowrap;
}

/* .pricing-glow removed per user request for softer look */

/* --------------------------------------------------------
   Changelog Section
-------------------------------------------------------- */
.changelog-section {
    padding: 80px 0 140px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.changelog-header {
    text-align: center;
    margin-bottom: 80px;
}

.changelog-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 16px;
}

.changelog-header p {
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
}

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Timeline vertical line */
.changelog-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 159px; /* Center of the gap (140 + 20) - 1px for line center */
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-gold) 10%, rgba(229,184,75,0.1) 60%, transparent 100%);
    box-shadow: 0 0 10px rgba(229,184,75,0.2);
    z-index: 1;
}

.changelog-item {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
}

.changelog-item:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.changelog-item::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 154px; /* Center of the gap (160) - 6px radius */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #020202;
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold);
    z-index: 2;
}

.changelog-meta {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 8px;
    padding-top: 4px;
}

.changelog-meta .version {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.changelog-meta .date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-stable {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.badge-beta {
    background: rgba(229, 184, 75, 0.15);
    color: var(--color-gold-light);
    border: 1px solid rgba(229, 184, 75, 0.3);
    box-shadow: 0 0 15px rgba(229, 184, 75, 0.2);
}

.changelog-content {
    flex: 1;
    background: rgba(12, 12, 12, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.changelog-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-text);
}

.changelog-content p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: var(--line-height);
}

.changelog-content ul {
    list-style: none;
}

.changelog-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    line-height: var(--line-height);
}

.changelog-content ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-gold);
}

/* --------------------------------------------------------
   Re-usable Animations
-------------------------------------------------------- */
.animate-fade {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale {
    opacity: 0;
    animation: scaleUpLite 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUpLite {
    0% { opacity: 0; transform: scale(0.97) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --------------------------------------------------------
   Responsive Adjustments
-------------------------------------------------------- */
@media (max-width: 768px) {
    .changelog-list::before {
        display: none;
    }
    .changelog-item::after {
        display: none;
    }
    .changelog-item {
        flex-direction: column;
        gap: 20px;
    }
    .changelog-meta {
        align-items: flex-start;
        text-align: left;
    }
}
