2025-04-12 17:18:33 +03:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
|
|
@section('title', $game->name)
|
|
|
|
|
|
|
|
|
|
@section('content')
|
2026-02-28 14:08:30 +02:00
|
|
|
<!-- Hero Section with Background -->
|
|
|
|
|
<div class="game-hero-section" style="background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.9) 70%, #0f172a 100%), url('{{ $game->cover_url }}') center/cover;">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row align-items-end" style="min-height: 400px;">
|
|
|
|
|
<div class="col-12">
|
|
|
|
|
<div class="game-hero-content pb-4">
|
|
|
|
|
<h1 class="display-4 fw-bold text-white mb-3">{{ $game->name }}</h1>
|
|
|
|
|
<div class="d-flex flex-wrap align-items-center gap-3 mb-3">
|
2026-02-22 20:02:34 +02:00
|
|
|
@if($game->rating)
|
2026-02-28 14:08:30 +02:00
|
|
|
<div class="hero-rating">
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
<div class="rating-circle me-2">
|
|
|
|
|
<span class="rating-number">{{ number_format($game->rating, 0) }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="rating-stars mb-1">
|
|
|
|
|
@for($i = 1; $i <= 5; $i++)
|
|
|
|
|
<i class="fas fa-star {{ $i <= ($game->rating/20) ? 'text-warning' : 'text-secondary' }}"></i>
|
|
|
|
|
@endfor
|
|
|
|
|
</div>
|
|
|
|
|
<small class="text-muted">{{ number_format($game->rating_count) }} ratings</small>
|
|
|
|
|
</div>
|
2026-02-22 20:02:34 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
@endif
|
|
|
|
|
@if($game->first_release_date)
|
|
|
|
|
<div class="hero-meta-item">
|
|
|
|
|
<i class="far fa-calendar-alt me-2"></i>
|
|
|
|
|
<span>{{ $game->first_release_date->format('Y') }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
<div class="hero-genres">
|
|
|
|
|
@foreach($game->genres()->limit(3)->get() as $genre)
|
|
|
|
|
<span class="badge bg-dark bg-opacity-75 border border-secondary">{{ $genre->name }}</span>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
2025-07-11 12:56:44 +03:00
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Main Content Area -->
|
|
|
|
|
<div class="container mt-4">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<!-- Left Column: Media & Description -->
|
|
|
|
|
<div class="col-lg-8">
|
|
|
|
|
<!-- Media Gallery -->
|
|
|
|
|
@if($game->screenshots->count() > 0 || $game->videos->count() > 0)
|
|
|
|
|
<div class="media-gallery-section mb-4">
|
|
|
|
|
<div class="card gradient-border">
|
|
|
|
|
<div class="card-body p-0">
|
|
|
|
|
<!-- Main Display -->
|
|
|
|
|
<div class="media-main-display">
|
|
|
|
|
@if($game->screenshots->count() > 0)
|
|
|
|
|
<img id="mainMediaDisplay" src="{{ $game->screenshots->first()->url }}" class="img-fluid w-100" alt="Screenshot" style="max-height: 500px; object-fit: cover;">
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Thumbnails -->
|
|
|
|
|
<div class="media-thumbnails p-3">
|
|
|
|
|
<div class="row g-2">
|
|
|
|
|
@foreach($game->screenshots->take(6) as $index => $screenshot)
|
|
|
|
|
<div class="col-2">
|
|
|
|
|
<div class="media-thumbnail {{ $index === 0 ? 'active' : '' }}" data-type="image" data-url="{{ $screenshot->url }}">
|
|
|
|
|
<img src="{{ $screenshot->url }}" class="img-fluid" alt="Screenshot {{ $index + 1 }}">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
@foreach($game->videos->take(2) as $video)
|
|
|
|
|
<div class="col-2">
|
|
|
|
|
<div class="media-thumbnail" data-type="video" data-video-id="{{ $video->video_id }}">
|
|
|
|
|
<img src="https://img.youtube.com/vi/{{ $video->video_id }}/mqdefault.jpg" class="img-fluid" alt="Video">
|
|
|
|
|
<div class="play-overlay">
|
|
|
|
|
<i class="fas fa-play-circle fa-2x"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
<!-- About This Game -->
|
|
|
|
|
<div class="card gradient-border mb-4">
|
|
|
|
|
<div class="card-header bg-dark bg-opacity-50">
|
|
|
|
|
<h3 class="h5 mb-0 text-white">About This Game</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
@if($game->summary)
|
|
|
|
|
<p class="text-white mb-4">{{ $game->summary }}</p>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if($game->storyline)
|
|
|
|
|
<h6 class="text-white fw-bold mb-3">Storyline</h6>
|
|
|
|
|
<p class="text-muted">{{ $game->storyline }}</p>
|
2025-07-11 12:56:44 +03:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
<!-- Reviews Section -->
|
|
|
|
|
<div class="card gradient-border mb-4">
|
|
|
|
|
<div class="card-header bg-dark bg-opacity-50 d-flex justify-content-between align-items-center">
|
|
|
|
|
<h3 class="h5 mb-0 text-white">Reviews</h3>
|
2025-04-12 17:18:33 +03:00
|
|
|
@auth
|
|
|
|
|
<a href="{{ route('games.reviews.create', $game) }}" class="btn btn-gradient btn-sm">
|
2026-02-28 14:08:30 +02:00
|
|
|
<i class="fas fa-plus me-1"></i>Write Review
|
2025-04-12 17:18:33 +03:00
|
|
|
</a>
|
|
|
|
|
@endauth
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
2026-02-22 20:02:34 +02:00
|
|
|
@if($reviews->isEmpty())
|
2025-07-11 12:56:44 +03:00
|
|
|
<div class="text-center py-5">
|
|
|
|
|
<i class="fas fa-comments fa-3x text-muted mb-3"></i>
|
|
|
|
|
<p class="text-muted mb-3">No reviews yet. Be the first to review this game!</p>
|
|
|
|
|
@auth
|
|
|
|
|
<a href="{{ route('games.reviews.create', $game) }}" class="btn btn-gradient">
|
2026-02-28 14:08:30 +02:00
|
|
|
<i class="fas fa-plus me-1"></i>Write a Review
|
2025-07-11 12:56:44 +03:00
|
|
|
</a>
|
|
|
|
|
@else
|
|
|
|
|
<a href="{{ route('login') }}" class="btn btn-gradient">
|
2026-02-28 14:08:30 +02:00
|
|
|
<i class="fas fa-sign-in-alt me-1"></i>Login to Write a Review
|
2025-07-11 12:56:44 +03:00
|
|
|
</a>
|
|
|
|
|
@endauth
|
|
|
|
|
</div>
|
2025-04-12 17:18:33 +03:00
|
|
|
@else
|
2026-02-28 14:08:30 +02:00
|
|
|
<!-- Overall Rating Summary -->
|
|
|
|
|
@if($game->rating)
|
|
|
|
|
<div class="review-summary mb-4 p-4 bg-dark bg-opacity-25 rounded">
|
|
|
|
|
<div class="row align-items-center">
|
|
|
|
|
<div class="col-md-4 text-center border-end border-secondary">
|
|
|
|
|
<div class="overall-score mb-2">
|
|
|
|
|
<span class="display-3 fw-bold gradient-text">{{ number_format($game->rating, 1) }}</span>
|
|
|
|
|
<span class="text-muted">/100</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="rating-stars mb-2">
|
|
|
|
|
@for($i = 1; $i <= 5; $i++)
|
|
|
|
|
<i class="fas fa-star {{ $i <= ($game->rating/20) ? 'text-warning' : 'text-secondary' }}"></i>
|
|
|
|
|
@endfor
|
|
|
|
|
</div>
|
|
|
|
|
<small class="text-muted">{{ number_format($game->rating_count) }} reviews</small>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
<h6 class="text-white mb-3">Rating Distribution</h6>
|
|
|
|
|
@foreach(array_slice($ratingDistribution, 0, 5) as $rating)
|
|
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
|
|
<span class="rating-label text-muted me-2" style="width: 60px;">{{ $rating['range'] }} stars</span>
|
|
|
|
|
<div class="progress flex-grow-1" style="height: 8px;">
|
|
|
|
|
<div class="progress-bar bg-gradient" style="width: {{ $rating['percentage'] }}%; background: linear-gradient(90deg, var(--primary), var(--accent));"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="ms-2 text-muted" style="width: 50px;">{{ number_format($rating['percentage'], 0) }}%</span>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
<!-- Individual Reviews -->
|
2025-07-11 12:56:44 +03:00
|
|
|
<div class="reviews-list">
|
2026-02-28 14:08:30 +02:00
|
|
|
@foreach($reviews->take(5) as $review)
|
|
|
|
|
<div class="review-item mb-3 p-3 bg-dark bg-opacity-25 rounded">
|
|
|
|
|
<div class="d-flex justify-content-between align-items-start mb-3">
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
<div class="user-avatar me-3">
|
|
|
|
|
<i class="fas fa-user-circle fa-2x text-muted"></i>
|
2025-07-11 12:56:44 +03:00
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
<div>
|
|
|
|
|
<a href="{{ route('profile.show', $review->user) }}" class="text-white text-decoration-none fw-bold">
|
|
|
|
|
{{ $review->user->name }}
|
|
|
|
|
</a>
|
|
|
|
|
<div class="small text-muted">
|
|
|
|
|
<i class="far fa-clock me-1"></i>{{ $review->created_at->diffForHumans() }}
|
2025-07-11 12:56:44 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
<div class="text-end">
|
|
|
|
|
<div class="review-score mb-1" style="background: {{ $review->rating >= 7 ? 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)' : ($review->rating >= 5 ? 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)' : 'linear-gradient(135deg, #fa709a 0%, #fee140 100%)') }}; padding: 0.5rem 1rem; border-radius: 8px; display: inline-block;">
|
|
|
|
|
<span class="fw-bold text-white">{{ $review->rating }}/10</span>
|
|
|
|
|
</div>
|
|
|
|
|
@if($review->recommended)
|
|
|
|
|
<div class="small">
|
|
|
|
|
<i class="fas fa-thumbs-up text-success me-1"></i>
|
|
|
|
|
<span class="text-success">Recommended</span>
|
|
|
|
|
</div>
|
2025-07-11 12:56:44 +03:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
<div class="review-content text-white">
|
|
|
|
|
{!! nl2br(e(Str::limit($review->content, 300))) !!}
|
|
|
|
|
@if(strlen($review->content) > 300)
|
|
|
|
|
<a href="{{ route('reviews.show', $review) }}" class="text-primary">Read more</a>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
<div class="review-footer mt-3 pt-3 border-top border-secondary d-flex justify-content-between">
|
|
|
|
|
<a href="{{ route('reviews.show', $review) }}" class="btn btn-sm btn-outline-gradient">
|
|
|
|
|
Read full review
|
|
|
|
|
</a>
|
|
|
|
|
@if(auth()->id() === $review->user_id)
|
|
|
|
|
<div class="d-flex gap-2">
|
|
|
|
|
<a href="{{ route('reviews.edit', $review) }}" class="btn btn-sm btn-outline-gradient">
|
|
|
|
|
<i class="fas fa-edit"></i> Edit
|
|
|
|
|
</a>
|
|
|
|
|
<form action="{{ route('reviews.destroy', $review) }}" method="POST" class="d-inline">
|
|
|
|
|
@csrf
|
|
|
|
|
@method('DELETE')
|
|
|
|
|
<button type="submit" class="btn btn-sm btn-outline-danger" onclick="return confirm('Are you sure?')">
|
|
|
|
|
<i class="fas fa-trash"></i> Delete
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2025-04-12 23:28:09 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-07-11 12:56:44 +03:00
|
|
|
@endforeach
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
|
|
|
|
|
@if($reviews->count() > 5)
|
|
|
|
|
<div class="text-center mt-4">
|
|
|
|
|
<a href="{{ route('games.reviews.index', $game) }}" class="btn btn-outline-gradient">
|
|
|
|
|
View All {{ $reviews->count() }} Reviews
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2025-04-12 17:18:33 +03:00
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
|
|
|
|
|
<!-- Right Column: Game Details Sidebar -->
|
|
|
|
|
<div class="col-lg-4">
|
|
|
|
|
<!-- Cover & Action Buttons -->
|
|
|
|
|
<div class="card gradient-border mb-4 sticky-top" style="top: 100px;">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<img src="{{ $game->cover_url }}" class="img-fluid rounded mb-3 w-100" alt="{{ $game->name }}" style="box-shadow: 0 4px 20px rgba(0,0,0,0.5);">
|
|
|
|
|
|
|
|
|
|
<!-- Add to List -->
|
|
|
|
|
@auth
|
|
|
|
|
<div class="dropdown mb-3 w-100">
|
|
|
|
|
<button class="btn btn-gradient w-100 py-2" type="button" data-bs-toggle="dropdown">
|
|
|
|
|
<i class="fas fa-plus me-2"></i>Add to My Lists
|
|
|
|
|
</button>
|
|
|
|
|
<ul class="dropdown-menu dropdown-menu-dark w-100">
|
|
|
|
|
@foreach(Auth::user()->lists as $list)
|
|
|
|
|
<li>
|
|
|
|
|
<form action="{{ route('lists.addGame', $list) }}" method="POST">
|
|
|
|
|
@csrf
|
|
|
|
|
<input type="hidden" name="game_id" value="{{ $game->id }}">
|
|
|
|
|
<button type="submit" class="dropdown-item">
|
|
|
|
|
<i class="fas fa-list me-2"></i>{{ $list->name }}
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</li>
|
|
|
|
|
@endforeach
|
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
|
|
|
|
<li>
|
|
|
|
|
<a class="dropdown-item" href="{{ route('lists.create') }}">
|
|
|
|
|
<i class="fas fa-plus me-2"></i>Create New List
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
|
|
|
|
<a href="{{ route('login') }}" class="btn btn-gradient w-100 mb-3 py-2">
|
|
|
|
|
<i class="fas fa-sign-in-alt me-2"></i>Login to Add to List
|
|
|
|
|
</a>
|
|
|
|
|
@endauth
|
|
|
|
|
|
|
|
|
|
<!-- Game Info -->
|
|
|
|
|
<div class="game-info-sidebar">
|
|
|
|
|
<div class="info-item mb-3 pb-3 border-bottom border-secondary">
|
|
|
|
|
<small class="text-muted d-block mb-1">Release Date</small>
|
|
|
|
|
<span class="text-white">{{ $game->first_release_date ? $game->first_release_date->format('F j, Y') : 'TBA' }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@if($game->platforms()->count() > 0)
|
|
|
|
|
<div class="info-item mb-3 pb-3 border-bottom border-secondary">
|
|
|
|
|
<small class="text-muted d-block mb-2">Platforms</small>
|
|
|
|
|
<div class="d-flex flex-wrap gap-2">
|
|
|
|
|
@foreach($game->platforms()->get() as $platform)
|
|
|
|
|
<span class="badge bg-secondary">
|
|
|
|
|
<i class="fas fa-desktop me-1"></i>{{ $platform->name }}
|
|
|
|
|
</span>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if($game->genres()->count() > 0)
|
|
|
|
|
<div class="info-item mb-3 pb-3 border-bottom border-secondary">
|
|
|
|
|
<small class="text-muted d-block mb-2">Genres</small>
|
|
|
|
|
<div class="d-flex flex-wrap gap-2">
|
|
|
|
|
@foreach($game->genres()->get() as $genre)
|
|
|
|
|
<span class="badge bg-primary">{{ $genre->name }}</span>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if($game->url)
|
|
|
|
|
<div class="info-item mb-3 pb-3 border-bottom border-secondary">
|
|
|
|
|
<small class="text-muted d-block mb-1">Official Website</small>
|
|
|
|
|
<a href="{{ $game->url }}" target="_blank" class="text-white text-decoration-none">
|
|
|
|
|
Visit Website <i class="fas fa-external-link-alt ms-1"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if($game->rating)
|
|
|
|
|
<div class="info-item">
|
|
|
|
|
<small class="text-muted d-block mb-1">Community Rating</small>
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
<span class="text-white fw-bold me-2">{{ number_format($game->rating, 1) }}/100</span>
|
|
|
|
|
<span class="text-muted small">({{ number_format($game->rating_count) }} votes)</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Similar Games -->
|
|
|
|
|
@if($game->similar_games->count() > 0)
|
|
|
|
|
<div class="card gradient-border mb-4">
|
|
|
|
|
<div class="card-header bg-dark bg-opacity-50">
|
|
|
|
|
<h5 class="mb-0 text-white">You May Also Like</h5>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body p-2">
|
|
|
|
|
@foreach($game->similar_games->take(4) as $similar)
|
|
|
|
|
<a href="{{ route('games.show', $similar) }}" class="similar-game-item d-flex p-2 mb-2 rounded text-decoration-none">
|
|
|
|
|
<img src="{{ $similar->cover_url }}" alt="{{ $similar->name }}" class="similar-game-cover me-3 rounded">
|
|
|
|
|
<div class="flex-grow-1">
|
|
|
|
|
<h6 class="text-white mb-1 small">{{ Str::limit($similar->name, 40) }}</h6>
|
|
|
|
|
<div class="d-flex align-items-center">
|
|
|
|
|
@if($similar->rating)
|
|
|
|
|
<span class="badge bg-primary me-2">{{ number_format($similar->rating, 0) }}</span>
|
|
|
|
|
@endif
|
|
|
|
|
@if($similar->first_release_date)
|
|
|
|
|
<small class="text-muted">{{ $similar->first_release_date->format('Y') }}</small>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
<!-- DLCs -->
|
|
|
|
|
@if($game->dlcs->count() > 0)
|
|
|
|
|
<div class="card gradient-border mb-4">
|
|
|
|
|
<div class="card-header bg-dark bg-opacity-50">
|
|
|
|
|
<h5 class="mb-0 text-white">DLC & Expansions</h5>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body p-2">
|
|
|
|
|
@foreach($game->dlcs->take(4) as $dlc)
|
|
|
|
|
<a href="{{ route('games.show', $dlc) }}" class="similar-game-item d-flex p-2 mb-2 rounded text-decoration-none">
|
|
|
|
|
<img src="{{ $dlc->cover_url }}" alt="{{ $dlc->name }}" class="similar-game-cover me-3 rounded">
|
|
|
|
|
<div class="flex-grow-1">
|
|
|
|
|
<h6 class="text-white mb-1 small">{{ Str::limit($dlc->name, 40) }}</h6>
|
|
|
|
|
<small class="text-muted">Additional Content</small>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
@endforeach
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
2025-04-12 17:18:33 +03:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-02-28 14:08:30 +02:00
|
|
|
@endsection
|
2025-07-11 12:56:44 +03:00
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
@push('styles')
|
2025-07-11 12:56:44 +03:00
|
|
|
<style>
|
2026-02-28 14:08:30 +02:00
|
|
|
/* Hero Section */
|
|
|
|
|
.game-hero-section {
|
|
|
|
|
margin: -2rem -15px 0;
|
|
|
|
|
padding: 2rem 0;
|
2025-07-11 12:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
[data-theme="light"] .game-hero-section {
|
|
|
|
|
background-blend-mode: multiply;
|
2025-07-11 12:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
.rating-circle {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rating-number {
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
font-weight: 700;
|
2025-07-11 12:56:44 +03:00
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
.hero-meta-item {
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
border-radius: 8px;
|
2025-07-11 12:56:44 +03:00
|
|
|
color: white;
|
2026-02-28 14:08:30 +02:00
|
|
|
backdrop-filter: blur(10px);
|
2025-07-11 12:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
[data-theme="light"] .hero-meta-item {
|
|
|
|
|
background: rgba(255, 255, 255, 0.9);
|
|
|
|
|
color: var(--text);
|
2025-07-11 12:56:44 +03:00
|
|
|
}
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
/* Media Gallery */
|
|
|
|
|
.media-main-display {
|
|
|
|
|
background: #000;
|
|
|
|
|
min-height: 400px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.media-thumbnail {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.media-thumbnail:hover,
|
|
|
|
|
.media-thumbnail.active {
|
|
|
|
|
border-color: var(--gradient-start);
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.media-thumbnail img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 60px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.play-overlay {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
2025-07-11 12:56:44 +03:00
|
|
|
color: white;
|
2026-02-28 14:08:30 +02:00
|
|
|
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Similar Games */
|
|
|
|
|
.similar-game-item {
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
background: var(--card-hover);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.similar-game-item:hover {
|
|
|
|
|
background: var(--card-hover);
|
|
|
|
|
transform: translateX(5px);
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.similar-game-cover {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 80px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Reviews */
|
|
|
|
|
.review-item {
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.review-item:hover {
|
|
|
|
|
border-color: rgba(127, 0, 255, 0.3);
|
|
|
|
|
background: var(--card-hover) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Card Styles */
|
|
|
|
|
.card {
|
|
|
|
|
background: var(--card-bg);
|
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
border: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-header {
|
|
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-body {
|
|
|
|
|
color: var(--text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Light theme specific styles */
|
|
|
|
|
[data-theme="light"] .card {
|
|
|
|
|
box-shadow: 0 2px 8px var(--shadow);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] .text-white {
|
|
|
|
|
color: var(--text) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] .text-muted {
|
|
|
|
|
color: var(--text-muted) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-theme="light"] .bg-dark {
|
|
|
|
|
background-color: var(--card-bg) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Responsive */
|
|
|
|
|
@media (max-width: 991px) {
|
|
|
|
|
.game-hero-section {
|
|
|
|
|
min-height: 300px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sticky-top {
|
|
|
|
|
position: relative !important;
|
|
|
|
|
top: 0 !important;
|
|
|
|
|
}
|
2025-07-11 12:56:44 +03:00
|
|
|
}
|
|
|
|
|
</style>
|
2026-02-28 14:08:30 +02:00
|
|
|
@endpush
|
|
|
|
|
|
|
|
|
|
@push('scripts')
|
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
// Media Gallery Handler
|
|
|
|
|
const thumbnails = document.querySelectorAll('.media-thumbnail');
|
|
|
|
|
const mainDisplay = document.getElementById('mainMediaDisplay');
|
|
|
|
|
|
|
|
|
|
if (mainDisplay && thumbnails.length > 0) {
|
|
|
|
|
thumbnails.forEach(thumbnail => {
|
|
|
|
|
thumbnail.addEventListener('click', function() {
|
|
|
|
|
// Remove active class from all
|
|
|
|
|
thumbnails.forEach(t => t.classList.remove('active'));
|
|
|
|
|
// Add active class to clicked
|
|
|
|
|
this.classList.add('active');
|
|
|
|
|
|
|
|
|
|
const type = this.getAttribute('data-type');
|
|
|
|
|
|
|
|
|
|
if (type === 'image') {
|
|
|
|
|
const imageUrl = this.getAttribute('data-url');
|
|
|
|
|
mainDisplay.outerHTML = `<img id="mainMediaDisplay" src="${imageUrl}" class="img-fluid w-100" alt="Screenshot" style="max-height: 500px; object-fit: cover;">`;
|
|
|
|
|
} else if (type === 'video') {
|
|
|
|
|
const videoId = this.getAttribute('data-video-id');
|
|
|
|
|
mainDisplay.outerHTML = `<div id="mainMediaDisplay" class="ratio ratio-16x9"><iframe src="https://www.youtube.com/embed/${videoId}" allowfullscreen></iframe></div>`;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
@endpush
|