/**
 * Page Templates Styles
 *
 * @package ComplySpec_Accessible
 * @since 1.5.0
 */

/* ========================================
   LANDING PAGE TEMPLATE
   ======================================== */

.landing-page .cs-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    margin: 0;
}

.landing-page .cs-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.landing-page .cs-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.landing-page .cs-hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 2rem;
    opacity: 0.95;
}

.landing-page .cs-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-page .cs-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.landing-page .cs-btn-primary {
    background: #fff;
    color: #667eea;
}

.landing-page .cs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.landing-page .cs-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.landing-page .cs-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.landing-page .cs-content-section {
    padding: 80px 20px;
}

/* ========================================
   PORTFOLIO GRID TEMPLATE
   ======================================== */

.portfolio-grid-page .page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.portfolio-grid-page .page-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
}

.portfolio-grid-page .page-description {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.cs-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cs-portfolio-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cs-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cs-portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.cs-portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cs-portfolio-item:hover .cs-portfolio-thumbnail img {
    transform: scale(1.1);
}

.cs-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cs-portfolio-item:hover .cs-portfolio-overlay {
    opacity: 1;
}

.cs-portfolio-overlay i {
    font-size: 3rem;
    color: #fff;
}

.cs-portfolio-content {
    padding: 1.5rem;
}

.cs-portfolio-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.cs-portfolio-title a {
    color: #333;
    text-decoration: none;
}

.cs-portfolio-title a:hover {
    color: #667eea;
}

.cs-portfolio-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cs-portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.875rem;
}

.cs-portfolio-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   PRICING TABLE TEMPLATE
   ======================================== */

.pricing-page .page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 60px;
}

.pricing-page .page-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
}

.pricing-page .page-description {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.cs-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cs-pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.cs-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.cs-pricing-featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.cs-pricing-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.cs-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.cs-pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.cs-pricing-title {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: #333;
}

.cs-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.cs-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
}

.cs-price-period {
    font-size: 1rem;
    color: #6c757d;
}

.cs-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.cs-pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
}

.cs-pricing-features i {
    font-size: 1rem;
}

.cs-pricing-features .fa-check {
    color: #28a745;
}

.cs-pricing-features .fa-times {
    color: #dc3545;
}

.cs-pricing-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cs-btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.cs-btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* ========================================
   FAQ TEMPLATE
   ======================================== */

.faq-page .page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.cs-faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cs-faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cs-faq-question {
    width: 100%;
    padding: 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.cs-faq-question:hover {
    background: #f8f9fa;
}

.cs-faq-question:focus {
    outline: 2px solid #667eea;
    outline-offset: -2px;
}

.cs-faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.cs-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.7;
}

/* ========================================
   CONTACT FORM TEMPLATE
   ======================================== */

.contact-page .page-header {
    text-align: center;
    padding: 60px 20px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 60px;
}

.cs-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .cs-contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.cs-contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.cs-contact-info h2 {
    margin-top: 0;
}

.cs-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cs-contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
}

.cs-contact-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #333;
}

.cs-contact-item p {
    margin: 0;
    color: #6c757d;
}

.cs-contact-item a {
    color: #667eea;
    text-decoration: none;
}

.cs-contact-item a:hover {
    text-decoration: underline;
}

.cs-contact-social h3 {
    margin-bottom: 1rem;
}

.cs-social-links {
    display: flex;
    gap: 1rem;
}

.cs-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cs-social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.cs-contact-form-wrapper {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cs-form-group {
    margin-bottom: 1.5rem;
}

.cs-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.cs-form-group .required {
    color: #dc3545;
}

.cs-form-group input,
.cs-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.cs-form-group input:focus,
.cs-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.cs-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.cs-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cs-form-response {
    margin-top: 1rem;
}

.cs-success {
    padding: 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 6px;
}

.cs-error {
    padding: 1rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 6px;
}

/* ========================================
   FULL WIDTH TEMPLATE
   ======================================== */

.full-width-page .content-container {
    max-width: 100%;
}

.full-width-page .site-main {
    width: 100%;
    max-width: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .landing-page .cs-hero {
        padding: 60px 20px;
    }

    .landing-page .cs-hero-title {
        font-size: 2rem;
    }

    .landing-page .cs-hero-subtitle {
        font-size: 1.125rem;
    }

    .cs-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cs-pricing-grid {
        grid-template-columns: 1fr;
    }

    .cs-pricing-featured {
        transform: scale(1);
    }

    .cs-pricing-featured:hover {
        transform: translateY(-8px);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

.cs-faq-question:focus-visible,
.cs-btn:focus-visible,
.cs-pricing-btn:focus-visible,
.cs-submit-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
