/**
 * AysimaPOS - Features Page Styles
 * 
 * DESIGN PRINCIPLES:
 * - Landing page design consistency
 * - Bootstrap 5 utilities
 * - Mobile-first responsive
 * - AOS animation support
 * - Performance optimized
 * 
 * GOOGLE SEO BEST PRACTICES:
 * - Fast loading (<2s)
 * - Mobile responsive
 * - Accessibility (WCAG AA)
 * - No layout shift (CLS)
 * 
 * @author AysimaPOS Development Team
 * @version 1.0.0
 */

/* ============================================
   HERO SECTION
   ============================================ */
.features-hero-section {
    padding: 40px 0 40px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.features-hero-section .container {
    max-width: 1280px;
}

.features-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.8;
}

.features-hero-content {
    color: var(--color-white);
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.features-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #ffffff;
}

.features-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.features-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.highlight-gradient {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero CTA Buttons */
.features-hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.features-hero-cta-buttons .btn {
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.features-hero-cta-buttons .btn-cta {
    background: var(--gradient-cta);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(178, 66, 25, 0.3);
}

.features-hero-cta-buttons .btn-cta:hover {
    background: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 66, 25, 0.4);
    color: #ffffff;
}

.features-hero-cta-buttons .btn-outline-light {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.features-hero-cta-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Hero Trust Signals */
.features-hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.features-hero-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-hero-trust i {
    color: var(--color-success-400);
    font-size: 1rem;
}

/* ============================================
   FEATURES GRID SECTION
   ============================================ */
.features-grid-section {
    padding: 0px 0;
    background-color: var(--color-gray-50);
}

.feature-item-card {
    background: #f8f9fa;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.feature-image-wrapper:hover .feature-screenshot {
    opacity: 0.85;
}

.feature-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.feature-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: 1rem;
    line-height: 1.4;
    border-left: 4px solid var(--bs-primary);
    padding-left: 0.75rem;
}

.feature-highlights {
    margin-top: 1.5rem;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 1rem;
    color: var(--color-gray-700);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.feature-list li i {
    flex-shrink: 0;
}

/* ============================================
   CTA SECTION - Landing Page Style
   ============================================ */
.features-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.features-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 1;
    z-index: 1;
}

.features-cta-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.features-cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.features-cta-title i {
    color: #3b82f6;
}

.features-cta-description {
    font-size: 1.125rem;
    color: #475569;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.features-cta-description strong {
    color: #1e293b;
    font-weight: 700;
}

.features-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.features-cta-buttons .btn {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.features-cta-buttons .btn-cta {
    background: linear-gradient(135deg, #b24219 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(178, 66, 25, 0.4);
}

.features-cta-buttons .btn-cta:hover {
    background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 66, 25, 0.5);
    color: #ffffff;
}

.features-cta-buttons .btn-outline-primary {
    color: #3b82f6;
    border: 2px solid #3b82f6;
    background: transparent;
}

.features-cta-buttons .btn-outline-primary:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
}

.features-cta-buttons .btn-outline-secondary {
    color: #64748b;
    border: 2px solid #cbd5e1;
    background: transparent;
}

.features-cta-buttons .btn-outline-secondary:hover {
    background: #64748b;
    color: #ffffff;
    border-color: #64748b;
    transform: translateY(-2px);
}

.features-cta-trust {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.features-cta-trust span {
    font-size: 1rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.features-cta-trust i {
    color: #10b981;
    font-size: 1.25rem;
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .feature-item-card {
        padding: 2rem;
    }
    
    .feature-title {
        font-size: 1.75rem;
    }
    
    /* Mobile'da her zaman image top, content bottom */
    .feature-item-card .row {
        flex-direction: column;
    }
    
    .feature-image-wrapper {
        margin-bottom: 1.5rem;
    }
}

/* Mobile Phones (< 768px) */
@media (max-width: 767px) {
    .features-hero-section {
        padding: 80px 0 40px;
    }
    
    .features-hero-title {
        font-size: 2.5rem;
    }
    
    .features-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-hero-description {
        font-size: 1rem;
    }
    
    .features-grid-section {
        padding: 60px 0;
    }
    
    .feature-item-card {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .feature-list li {
        font-size: 0.9rem;
    }
    
    .features-cta-section {
        padding: 60px 0;
    }
    
    .features-cta-box {
        padding: 2rem 1.5rem;
    }
    
    .features-cta-title {
        font-size: 1.75rem;
    }
    
    .features-cta-buttons {
        flex-direction: column;
    }
    
    .features-cta-buttons .btn {
        width: 100%;
    }
    
    .features-cta-trust {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
    .features-hero-title {
        font-size: 2rem;
    }
    
    .features-hero-subtitle,
    .features-hero-description {
        font-size: 0.95rem;
    }
    
    .feature-number {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .feature-title {
        font-size: 1.35rem;
    }
}

/* ============================================
   IMAGE MODAL
   ============================================ */
.modal-xl {
    max-width: 90%;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   ACCESSIBILITY (WCAG AA)
   ============================================ */

/* Focus indicators */
.btn-cta:focus,
.features-cta-buttons .btn:focus {
    outline: 3px solid var(--color-primary-600);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-item-card:hover,
    .btn-cta:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-item-card {
        border: 2px solid var(--color-black);
    }
    
    .features-cta-box {
        border: 2px solid var(--color-black);
    }
}

/* ============================================
   CTA CARD (After 7th Feature)
   ============================================ */
.feature-cta-card {
    background: #f8f9fa;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 24px;
    padding: 60px 40px;
    margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-heading {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.cta-benefits li {
    font-size: 1rem;
    color: var(--color-gray-800);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.cta-action .btn {
    padding: 14px 32px;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.cta-action .btn-primary {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.cta-action .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.cta-action .btn-outline-success:hover {
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cta-note a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.cta-note a:hover {
    text-decoration: underline;
}

.cta-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.cta-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-cta-card:hover .cta-image {
    transform: scale(1.05);
}

.cta-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-success);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .feature-cta-card {
        padding: 40px 30px;
        margin: 60px 0;
    }
    
    .cta-heading {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .cta-action .btn {
        padding: 12px 24px;
        font-size: 1rem;
        margin-bottom: 12px;
        display: block;
        text-align: center;
    }
    
    .cta-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .feature-cta-card {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    .cta-heading {
        font-size: 1.5rem;
    }
    
    .cta-benefits li {
        font-size: 0.9375rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .features-hero-section,
    .features-cta-section {
        background: var(--color-white) !important;
        color: var(--color-black) !important;
    }
    
    .feature-item-card,
    .feature-cta-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-gray-300);
    }
    
    .features-cta-buttons,
    .cta-action {
        display: none;
    }
}
