/* Custom styles for Arcade Haven */

/* Custom focus styles */
.search-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

/* Game iframe container */
.game-frame-container {
    position: relative;
    padding-top: 60%; /* 16:9 Aspect Ratio */
    width: 100%;
}

.game-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom card hover effects */
.hover-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom loading animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    border-top-color: #007AFF;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom button styles */
.apple-button {
    background-color: #007AFF;
    color: white;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.apple-button:hover {
    background-color: #0066CC;
}

.apple-button-secondary {
    background-color: #F2F2F7;
    color: #1C1C1E;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.apple-button-secondary:hover {
    background-color: #E5E5EA;
}

/* Custom category badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge-action {
    background-color: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.category-badge-puzzle {
    background-color: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

.category-badge-strategy {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.category-badge-sports {
    background-color: rgba(255, 149, 0, 0.1);
    color: #FF9500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F2F2F7;
}

::-webkit-scrollbar-thumb {
    background: #8E8E93;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #747480;
}

/* Media queries for responsive adjustments */
@media (max-width: 640px) {
    .search-container {
        width: 100%;
    }
    
    .game-frame-container {
        padding-top: 75%; /* Adjust aspect ratio for mobile */
    }
}

/* Custom hero animations */
.hero-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities for text truncation */
.line-clamp-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    height: 2.4em;
    line-height: 1.2em;
}

.line-clamp-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    height: 3.6em;
    line-height: 1.2em;
}

/* Form elements */
.form-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #D1D1D6;
    transition: 0.2s all linear;
    outline: none;
    margin-right: 5px;
    position: relative;
}

.form-radio:checked {
    border: 5px solid #007AFF;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Adjustments for filter elements */
.filter-badge {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-badge:hover {
    background-color: rgba(0, 0, 0, 0.05);
} 