/* Matrix Theme Card Styles */

/* Matrix Card Base */
.matrix-card {
    background-color: #0a0a0a !important;
    border: 2px solid #00ff41 !important;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3), 0 0 30px rgba(0, 255, 65, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
    pointer-events: none;
}

.matrix-card:hover::before {
    left: 100%;
}

.matrix-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5), 0 0 50px rgba(0, 255, 65, 0.3), 0 8px 30px rgba(0, 255, 65, 0.2);
    border-color: #00ffaa;
}

/* Card Image Wrapper - Tüm kartlarda aynı yükseklik */
.matrix-card .card-img-wrapper,
.card-img-wrapper.image-container,
.matrix-card .image-container {
    position: relative !important;
    overflow: hidden !important;
    background-color: #000000 !important;
    width: 100% !important;
    height: 250px !important; /* Sabit yükseklik - zorunlu */
    min-height: 250px !important;
    max-height: 250px !important;
    aspect-ratio: 16/9 !important; /* Aspect ratio sabit tutar */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important; /* Küçülmesini engelle */
    box-sizing: border-box !important;
}

/* Tüm görseller için zorunlu boyutlar */
.matrix-card-img,
.matrix-card .card-img-top,
.matrix-card img,
.matrix-card .card-img-wrapper img,
.matrix-card .image-container img,
.card-img-wrapper img,
.card-img-wrapper .card-img-top {
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important; /* Görseli kırparak doldurur */
    object-position: center !important; /* Merkezden hizalar */
    display: block !important;
    filter: brightness(0.7) contrast(1.1) !important;
    transition: all 0.4s ease !important;
    border-bottom: 2px solid #00ff41 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Placeholder için özel stil */
.matrix-card-placeholder {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.matrix-card:hover .matrix-card-img {
    filter: brightness(0.9) contrast(1.2);
    transform: scale(1.1);
}

.card-img-overlay-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    transition: opacity 0.4s;
    pointer-events: none;
}

.matrix-card:hover .card-img-overlay-matrix {
    opacity: 0.4;
}

/* Card Body */
.matrix-card .card-body {
    background-color: #0a0a0a;
    color: #00ff41;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Card Title */
.matrix-card-title {
    color: #00ff41 !important;
    text-shadow: 0 0 10px #00ff41, 0 0 20px rgba(0, 255, 65, 0.5);
    font-family: 'Courier New', monospace !important;
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    line-height: 1.4;
}

.matrix-card:hover .matrix-card-title {
    color: #00ffaa !important;
    text-shadow: 0 0 15px #00ff41, 0 0 30px rgba(0, 255, 65, 0.7);
    transform: translateX(3px);
}

/* Card Date */
.matrix-card-date {
    color: #00cc33 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.matrix-card-date svg {
    filter: drop-shadow(0 0 3px #00ff41);
}

/* Card Text */
.matrix-card-text {
    color: #00ff41 !important;
    font-family: 'Courier New', monospace !important;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

/* Card Button */
.matrix-card-btn {
    background-color: #000000 !important;
    border: 2px solid #00ff41 !important;
    color: #00ff41 !important;
    font-family: 'Courier New', monospace !important;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.matrix-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 65, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.matrix-card-btn:hover::before {
    width: 300px;
    height: 300px;
}

.matrix-card-btn:hover {
    background-color: #00ff41 !important;
    color: #000000 !important;
    border-color: #00ff41 !important;
    box-shadow: 0 0 20px #00ff41, 0 0 40px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.matrix-card-btn span,
.matrix-card-btn svg {
    position: relative;
    z-index: 1;
}

.matrix-card-btn svg {
    transition: transform 0.3s;
}

.matrix-card-btn:hover svg {
    transform: translateX(3px);
}

/* Matrix Alert */
.matrix-alert {
    background-color: #0a0a0a !important;
    border: 2px solid #00ff41 !important;
    color: #00ff41 !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Section Title Enhancement */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    box-shadow: 0 0 10px #00ff41;
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% {
        box-shadow: 0 0 10px #00ff41;
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 20px #00ff41, 0 0 30px rgba(0, 255, 65, 0.5);
        opacity: 0.8;
    }
}

/* Empty State */
.matrix-card:empty::after {
    content: 'Yazı bulunamadı';
    display: block;
    padding: 2rem;
    text-align: center;
    color: #00cc33;
    font-family: 'Courier New', monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .matrix-card {
        margin-bottom: 1.5rem;
    }
    
    .matrix-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .matrix-card-title {
        font-size: 1.1rem;
    }
    
    /* Mobilde görseller biraz daha küçük */
    .card-img-wrapper {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .matrix-card-img,
    .matrix-card .card-img-top,
    .matrix-card img,
    .matrix-card .card-img-wrapper img {
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

/* Tablet için orta boy görseller */
@media (min-width: 769px) and (max-width: 992px) {
    .card-img-wrapper {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
    
    .matrix-card-img,
    .matrix-card .card-img-top,
    .matrix-card img,
    .matrix-card .card-img-wrapper img {
        min-height: 220px !important;
        max-height: 220px !important;
    }
}

