/**
 * Pages Redesign Styles
 * Professional page templates and content styling
 * Version: 2.0.0
 * @package dyat
 */

/* ============================================
   HERO SECTIONS
   ============================================ */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(255, 50, 51, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(56, 255, 30, 0.1), transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.page-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #b7b7b7;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #888888;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.breadcrumb-separator {
    color: #ff3233;
}

.breadcrumbs a {
    color: #cccccc;
    transition: color 0.25s;
}

.breadcrumbs a:hover {
    color: #ff3233;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.page-content {
    padding: 4rem 0;
    position: relative;
}

.content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.content-narrow {
    max-width: 800px;
}

.content-wide {
    max-width: 1536px;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* ============================================
   FEATURED BOXES
   ============================================ */
.featured-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3233, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-box:hover {
    background: linear-gradient(135deg, rgba(37, 37, 37, 0.95), rgba(26, 26, 26, 0.98));
    border-color: rgba(255, 50, 51, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 50, 51, 0.4);
}

.featured-box:hover::before {
    opacity: 1;
}

.featured-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 50, 51, 0.1);
    border: 1px solid rgba(255, 50, 51, 0.3);
    border-radius: 12px;
    color: #ff3233;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.featured-box:hover .featured-icon {
    background: rgba(255, 50, 51, 0.15);
    transform: scale(1.1) rotate(5deg);
}

.featured-icon svg {
    width: 32px;
    height: 32px;
}

.featured-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.featured-description {
    color: #b7b7b7;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(255, 50, 51, 0.05), rgba(0, 217, 255, 0.03));
    border-top: 1px solid rgba(42, 42, 42, 0.5);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(26, 26, 26, 0.3);
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    background: rgba(37, 37, 37, 0.5);
    border-color: rgba(255, 50, 51, 0.3);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display, "Jersey 25", sans-serif);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #ff3233, #00d9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 1rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TEAM MEMBERS
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.team-member {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover {
    border-color: rgba(255, 50, 51, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.team-avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-bottom: 2px solid rgba(255, 50, 51, 0.3);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.team-position {
    font-size: 0.9375rem;
    color: #ff3233;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 0.9375rem;
    color: #888888;
    line-height: 1.6;
}

/* ============================================
   BLOG/POST GRID
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 2rem;
}

.post-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    border-color: rgba(255, 50, 51, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #888888;
}

.post-category {
    color: #ff3233;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.post-title a {
    color: inherit;
    transition: color 0.25s;
}

.post-title a:hover {
    color: #ff3233;
}

.post-excerpt {
    color: #b7b7b7;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff3233;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.25s;
}

.read-more:hover {
    gap: 0.75rem;
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(255, 50, 51, 0.1), rgba(0, 217, 255, 0.05));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 16px;
    margin: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff3233, #00d9ff, transparent);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #b7b7b7;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(255, 50, 51, 0.2);
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    color: #b7b7b7;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 50, 51, 0.3);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: #888888;
}

/* ============================================
   PRICING TABLES
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(42, 42, 42, 0.5);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(255, 50, 51, 0.5);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 1.5rem;
    right: -35px;
    background: linear-gradient(135deg, #ff3233, #cc0000);
    color: #ffffff;
    padding: 0.375rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transform: rotate(45deg);
}

.pricing-card:hover {
    border-color: rgba(255, 50, 51, 0.3);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: var(--font-display, "Jersey 25", sans-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff3233;
    margin-bottom: 0.5rem;
}

.pricing-period {
    font-size: 0.875rem;
    color: #888888;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.3);
    color: #b7b7b7;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: '✓';
    color: #38ff1e;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .page-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem;
    }

    .page-content {
        padding: 3rem 0;
    }

    .stats-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .featured-box {
        padding: 2rem 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured::before {
        top: -12px;
        right: 50%;
        transform: translateX(50%) rotate(0);
        padding: 0.375rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 5rem 0 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}
