/* ===== INNOVATIVE FEATURES SECTION STYLES ===== */

/* Feature Content Enhancement */
.feature-content {
    padding: 20px 0;
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white !important;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-header:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon i {
    font-size: 24px !important;
    color: white !important;
    display: block !important;
    line-height: 1;
    font-weight: normal !important;
    font-family: "Ionicons", sans-serif !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Fallback za slučaj da Ionicons nije učitan */
.feature-icon i::before {
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Specifični fallback za svaku ikonicu */
.feature-icon i.ion-ios-person::before {
    content: "👨‍🏫";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
}

.feature-icon i.ion-ios-school::before {
    content: "👨‍🎓";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
}

.feature-icon i.ion-ios-card::before {
    content: "💳";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
}

.feature-icon i.ion-ios-megaphone::before {
    content: "📢";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 20px;
}

.feature-header:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.feature-header h2 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 2rem;
}

.feature-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    padding-left: 15px;
}

.feature-item:hover {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(10px);
    border-radius: 0 8px 8px 0;
}

.feature-item i {
    font-size: 20px;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span {
    font-size: 15px;
    line-height: 1.5;
    color: #444;
    font-weight: 500;
}

/* Image Container Enhancements */
.feature-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #fff;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 19px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-wrapper:hover::before {
    opacity: 1;
}

.image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.feature-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.4s ease;
    border-radius: 13px;
    opacity: 1; /* Osiguraj da je slika vidljiva */
    visibility: visible;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    backdrop-filter: blur(2px);
}

.image-wrapper:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.zoom-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.image-wrapper:hover .zoom-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.overlay-content h4 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Feature Badges */
.feature-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.feature-badges .badge {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: badgePulse 3s infinite;
}

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

/* Screenshot Modal Styles - Minimalistički */
.screenshot-modal .modal-dialog {
    max-width: fit-content;
    max-height: 95vh;
    margin: 2.5vh auto;
    width: auto;
}

.screenshot-modal .modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: transparent;
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Minimalistički close button */
.close-minimal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1060;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-minimal:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1) rotate(90deg);
    color: white;
}

.close-minimal:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Modal body samo za sliku - automatski se prilagođava proporciji slike */
.modal-body-minimal {
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0; /* Dozvoljava sažimanje */
    max-height: 95vh; /* Ograničava maksimalnu visinu */
    position: relative;
}

.modal-body-minimal img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    cursor: zoom-out;
    transition: transform 0.3s ease;
}

/* Hover efekat na sliku */
.modal-body-minimal img:hover {
    transform: scale(1.02);
}

/* Animacija za otvaranje modala */
.screenshot-modal.show .modal-content {
    animation: modalZoomIn 0.3s ease-out;
}

@keyframes modalZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Backdrop styling */
.screenshot-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Keyboard navigation support */
.modal-body-minimal img:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Optimizuj tekstualni sadržaj za mobilne uređaje */
    .feature-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Reorganizuj layout za mobilni prikaz */
    .yd-ft-inner {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .yd-ft-left,
    .yd-ft-right {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
        order: 0; /* Resetuj order za mobilni */
    }
    
    /* Na mobilnom, slika ide prva, zatim tekst */
    .yd-ft .yd-ft-right {
        order: 1;
    }
    
    .yd-ft .yd-ft-left {
        order: 2;
    }
    
    /* Poboljšaj prikaz slika na mobilnim */
    .feature-image-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .image-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .feature-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 1rem;
    }
    
    .feature-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 1rem;
    }
    
    .feature-list {
        display: none; /* Sakrij listu stavki na mobilnom da ne bude preopterećeno */
    }
    
    .feature-item {
        padding-left: 10px;
        font-size: 0.9rem;
    }
    
    .feature-item:hover {
        transform: translateX(5px);
    }
    
    .image-wrapper:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .zoom-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
    
    .feature-badges {
        top: 10px;
        right: 10px;
    }
    
    .screenshot-modal .modal-dialog {
        margin: 1vh auto;
        max-width: calc(100vw - 2vh);
        max-height: calc(100vh - 2vh);
        width: fit-content;
    }
    
    .close-minimal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-body-minimal {
        max-height: calc(100vh - 4vh);
    }
    
    .modal-body-minimal img {
        max-width: calc(100vw - 4vh);
        max-height: calc(100vh - 4vh);
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    /* Kompaktni prikaz za male mobilne ekrane */
    .feature-content {
        margin-bottom: 1.5rem;
    }
    
    .feature-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 0.75rem;
    }
    
    .feature-list,
    .feature-item {
        display: none !important; /* Sakrij samo listu stavki na malim ekranima */
    }
    
    /* Optimizuj slike za male ekrane */
    .yd-ft-inner {
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .yd-ft-left,
    .yd-ft-right {
        max-width: 300px;
    }
    
    .feature-image-container {
        max-width: 300px;
    }
    
    .image-wrapper {
        border-radius: 12px;
    }
    
    .feature-screenshot {
        border-radius: 10px;
    }
    
    .zoom-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .overlay-content h4 {
        font-size: 1.1rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
    
    .feature-badges {
        top: 8px;
        right: 8px;
    }
    
    .feature-badges .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Dodatni stilovi za minimalistički modal na malim ekranima */
    .screenshot-modal .modal-dialog {
        margin: 0.5vh auto;
        max-width: calc(100vw - 1vh);
        max-height: calc(100vh - 1vh);
        width: fit-content;
    }
    
    .modal-body-minimal {
        max-height: calc(100vh - 2vh);
    }
    
    .modal-body-minimal img {
        max-width: calc(100vw - 2vh);
        max-height: calc(100vh - 2vh);
    }
    
    .close-minimal {
        top: 8px;
        right: 8px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Tablet optimizations */
@media (max-width: 992px) and (min-width: 769px) {
    .feature-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-header h2 {
        font-size: 1.6rem;
    }
    
    .feature-subtitle {
        font-size: 1rem;
    }
    
    .feature-list {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-item {
        font-size: 0.95rem;
        justify-content: center;
        text-align: left;
    }
    
    .yd-ft-inner {
        /* gap: 2.5rem; */
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .feature-image-container {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .feature-image-container.aos-animate {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .image-wrapper {
        border: 2px solid #000;
    }
    
    .feature-item {
        border-left-width: 4px;
    }
    
    .feature-badges .badge {
        border: 2px solid #000;
    }
}

/* Print styles */
@media print {
    .image-overlay,
    .feature-badges {
        display: none;
    }
    
    .image-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Color Utilities for Feature Icons */
.text-primary { color: #667eea !important; }
.text-success { color: #2ecc71 !important; }
.text-warning { color: #f39c12 !important; }
.text-info { color: #3498db !important; }
.text-purple { color: #9b59b6 !important; }

/* Badge Color Enhancements */
.badge-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white;
}

/* Dodatne badge varijante za nove sekcije */
.badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white;
}

.badge-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad) !important;
    color: white;
}

/* Loading and Error States */
.image-wrapper.loading .feature-screenshot {
    filter: blur(2px);
    opacity: 0.7;
}

/* Ensure images are visible by default */
.feature-screenshot {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.image-wrapper {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Prevent any animations from hiding images */
.feature-screenshot,
.image-wrapper {
    animation-fill-mode: none !important;
}

/* Override any potential hiding styles */
.yd-ft .feature-screenshot,
.yd-ft .image-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent WOW.js from hiding images */
.wow .feature-screenshot,
.wow .image-wrapper,
.fadeInDown .feature-screenshot,
.fadeInDown .image-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    animation-fill-mode: none !important;
}

/* Specific override for feature sections */
#features .feature-screenshot,
#features .image-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Specifični stilovi za nove wrapper klase */
.image-wrapper.payment-system {
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.image-wrapper.payment-system:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.15);
}

.image-wrapper.ads-system {
    border: 2px solid rgba(243, 156, 18, 0.2);
}

.image-wrapper.ads-system:hover {
    border-color: rgba(243, 156, 18, 0.4);
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.15);
}

.image-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top: 3px solid #667eea;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Accessibility */
.image-wrapper[aria-expanded="true"] {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.overlay-content:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
}

/* Performance Optimizations */
.feature-screenshot {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.image-wrapper {
    contain: layout style paint;
    will-change: transform, box-shadow;
}

 