/* Demo Oyunlar Sayfası - Tek Satır Tasarım */

/* Single Row Filters */
.single-row-filters {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px 12px 10px 35px;
    color: #e5e7eb;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.select-wrapper {
    position: relative;
    min-width: 160px;
}

.select-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

.filter-select {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 10px 30px 10px 35px;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.filter-reset {
    background: rgba(239, 68, 68, 0.8);
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.filter-reset:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-1px);
}

.results-count {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    min-width: 60px;
}

/* Games Section */
.games-section {
    margin: 50px 0;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.games-header h2 {
    color: #3b82f6;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

/* Games Grid */
.games-grid {
    display: grid;
    gap: 25px;
    transition: all 0.3s ease;
}

.games-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.game-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.8));
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.game-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.game-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-badge.popular {
    background: linear-gradient(45deg, #f59e0b, #ef4444);
}

.game-badge.new {
    background: linear-gradient(45deg, #10b981, #059669);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #10b981, #059669);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.favorite-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.favorite-btn.favorited {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
}

.game-info {
    padding: 20px;
}

.game-title {
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.game-provider {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #374151;
    font-size: 14px;
    transition: color 0.3s ease;
}

.star.filled {
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

.rating-text {
    color: #fbbf24;
    font-weight: 600;
    font-size: 14px;
}

/* No Results */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.no-results-icon {
    margin-bottom: 25px;
    opacity: 0.7;
}

.no-results h3 {
    color: #3b82f6;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-results p {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.reset-filters-btn {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Game Features */
.game-features {
    margin: 80px 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.5), rgba(17, 24, 39, 0.5));
    border-radius: 25px;
    padding: 50px 40px;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: all 0.6s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #3b82f6;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 16px;
}

/* CTA Section */
.demo-cta-section {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 25px;
    padding: 60px 40px;
    margin: 80px 0;
    text-align: center;
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.demo-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

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

.cta-icon {
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

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

.cta-content h2 {
    color: #3b82f6;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
    border: 2px solid #3b82f6;
}

.cta-button.secondary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    border: 2px solid #fbbf24;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    height: 80%;
    max-height: 700px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.1);
}

.modal-header h3 {
    color: #3b82f6;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.modal-body {
    height: calc(100% - 80px);
    position: relative;
}

.game-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .games-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .single-row-filters {
        padding: 12px 15px;
        margin: 15px 0;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .search-wrapper {
        min-width: auto;
        flex: 1 1 100%;
    }
    
    .select-wrapper {
        min-width: auto;
        flex: 1;
    }
    
    .filter-reset {
        min-width: 35px;
        height: 35px;
        padding: 8px;
    }
    
    .results-count {
        min-width: auto;
        font-size: 13px;
    }
    
    .games-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .games-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        height: 90%;
    }
}

@media (max-width: 480px) {
    .single-row-filters {
        padding: 10px 12px;
        margin: 12px 0;
        gap: 10px;
    }
    
    .search-input {
        padding: 8px 10px 8px 30px;
        font-size: 13px;
    }
    
    .search-icon {
        left: 10px;
        width: 14px;
        height: 14px;
    }
    
    .select-icon {
        left: 10px;
        width: 14px;
        height: 14px;
    }
    
    .filter-select {
        padding: 8px 25px 8px 30px;
        font-size: 13px;
    }
    
    .select-arrow {
        right: 10px;
        width: 10px;
        height: 10px;
    }
    
    .filter-reset {
        padding: 6px;
        min-width: 32px;
        height: 32px;
    }
    
    .filter-reset svg {
        width: 14px;
        height: 14px;
    }
    
    .results-count {
        font-size: 12px;
    }
    
    .games-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .game-image-container {
        height: 150px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 16px;
    }
    
    .game-provider {
        font-size: 12px;
    }
    
    .play-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .favorite-btn {
        width: 35px;
        height: 35px;
    }
    
    .game-features {
        padding: 40px 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .demo-cta-section {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 98%;
        height: 95%;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
}
