/* Hazard Design - Dark Casino Theme for luotettavakasino.net */

/* WOW.js / Animate.css integration */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.wow { visibility: hidden; }
.wow.animated { visibility: visible; }
.animate__fadeInUp { animation: fadeInUp 0.8s ease-out forwards; }
.animate__fadeInLeft { animation: fadeInLeft 0.8s ease-out forwards; }
.animate__fadeInRight { animation: fadeInRight 0.8s ease-out forwards; }
.animate__zoomIn { animation: zoomIn 0.6s ease-out forwards; }
.animate__scaleIn { animation: scaleIn 0.6s ease-out forwards; }

/* Hero - Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + 2rem) 0 3rem;
    position: relative;
    overflow: hidden;
    background: #0C0416;
}

.hero-split .container {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
    align-items: center;
}

.hero-split-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-split-content h1 span {
    color: #D4A24C;
    text-shadow: 0 0 30px rgba(212, 162, 76, 0.5);
}

.hero-split-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

/* Parallax Images */
.hero-parallax {
    position: relative;
    min-height: 500px;
}

.hero-parallax img {
    position: absolute;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.hero-parallax img:nth-child(1) {
    top: 5%; left: 10%;
    width: 290px;
    animation: float 6s ease-in-out infinite;
}

.hero-parallax img:nth-child(2) {
    top: 0; right: 5%;
    width: 375px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.hero-parallax img:nth-child(3) {
    bottom: 25%; left: 5%;
    width: 215px;
    animation: float 5s ease-in-out infinite 1s;
}

.hero-parallax img:nth-child(4) {
    bottom: 15%; right: 10%;
    width: 215px;
    animation: float 5.5s ease-in-out infinite 0.3s;
}

.hero-parallax img:nth-child(5) {
    top: 40%; left: 30%;
    width: 115px;
    animation: float 4s ease-in-out infinite 0.8s;
}

.hero-parallax img:nth-child(6) {
    top: 60%; right: 25%;
    width: 130px;
    animation: float 6s ease-in-out infinite 1.2s;
}

.hero-parallax img:nth-child(7) {
    bottom: 5%; left: 40%;
    width: 90px;
    animation: float 4.5s ease-in-out infinite 0.6s;
}

.hero-parallax img:nth-child(8) {
    top: 30%; right: 0;
    width: 75px;
    animation: float 5s ease-in-out infinite 1s;
}

/* Services/Games Grid - 6 columns */
.games-section {
    background: #1A1035;
    padding: 5rem 0;
}

.games-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.games-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.blurb-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.blurb-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.blurb-card:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
}

.blurb-card .blurb-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blurb-card .blurb-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.blurb-card h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Games Carousel - Dark section */
.games-carousel-section {
    background: #0C0416;
    padding: 5rem 0;
    overflow: hidden;
}

.games-carousel-section h2 {
    color: #fff;
}

.game-card {
    border-radius: 16px;
    overflow: hidden;
    background: #1A1035;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-card-body {
    padding: 1.25rem;
}

.game-card-body h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.game-card-body p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

/* Featured Articles with Tabs */
.featured-articles {
    background: #1A1035;
    padding: 5rem 0;
}

.featured-articles h2 {
    color: #fff;
}

.tab-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-filter {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-filter:hover, .tab-filter.active {
    background: #D4A24C;
    color: #0C0416;
    border-color: #D4A24C;
}

.articles-table {
    width: 100%;
}

.articles-table .article-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.article-row-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-row-main img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.article-row-main h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.article-row-main p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.article-row .rating {
    display: flex;
    gap: 2px;
}

.article-row .rating svg {
    width: 16px;
    height: 16px;
    fill: #D4A24C;
}

.article-row .btn-default {
    background: linear-gradient(135deg, #D4A24C, #B8892F);
    color: #0C0416;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* White theme for inner pages */
.main-content {
    background: #ffffff;
    color: #333;
}

/* Text contrast for white background */
.main-content .article-content {
    color: #333;
}

.main-content .article-content p,
.main-content .article-content li {
    color: #444;
}

.main-content .article-content h2,
.main-content .article-content h3,
.main-content .article-content h4 {
    color: #1a1a2e;
}

.main-content article header h1 {
    color: #1a1a2e !important;
}

.main-content .breadcrumb-item {
    color: #777;
}

.main-content .breadcrumb-item a {
    color: #7C3AED !important;
}

.main-content .breadcrumb-item:last-child {
    color: #444;
}

.main-content .section-title {
    color: #7C3AED;
}

.main-content .section-subtitle {
    color: #666;
}

.main-content .card-title a {
    color: #1a1a2e !important;
}

.main-content .card-title a:hover {
    color: #7C3AED !important;
}

.main-content .seo-content h2 {
    color: #7C3AED;
}

.main-content .seo-content p {
    color: #555;
}

.main-content .sidebar-title {
    color: #7C3AED;
}

.main-content .sidebar-widget a {
    color: #444;
}

.main-content .sidebar-widget a:hover {
    color: #7C3AED;
}

.main-content .related-title {
    color: #7C3AED;
}

.main-content .related-articles {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.main-content .article-tags-title {
    color: #7C3AED;
}

.main-content .article-tag {
    color: #4C1F7A;
}

.main-content .article-tag::before {
    color: #D4A24C;
}

.main-content .category-card-title {
    color: #1a1a2e;
}

.main-content .category-card-count {
    color: #777;
}

.main-content .casino-card-new-name {
    color: #1a1a2e;
}

.main-content .casino-card-new-rating .rating-value {
    color: #333;
}

.main-content .tag {
    color: #4C1F7A;
    background: rgba(76, 31, 122, 0.08);
}

.main-content .article-content table {
    border-color: #e0dce6;
}

.main-content .article-content th,
.main-content .article-content td {
    border-bottom-color: #e0dce6;
}

.main-content .article-content tr:nth-child(even) {
    background: #f8f6fa;
}

.main-content .article-content blockquote {
    background: #f8f6fa;
    color: #444;
}

/* Cards on white background */
.category-card {
    background: #ffffff;
    border-color: rgba(76, 31, 122, 0.1);
}

.category-card:hover {
    border-color: #D4A24C;
}

/* Casino cards */
.casino-card-new {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
}

/* Tag cards */
.tag-card {
    background: #ffffff;
    border-color: rgba(76, 31, 122, 0.1);
}

.tag-card-name {
    color: #2d2d2d;
}

.tag-card-count {
    color: #4C1F7A;
    background: rgba(76, 31, 122, 0.1);
}

.tag-card-featured {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.tag-card-featured .tag-card-name {
    color: #fff;
}

.tag-card-featured .tag-card-count {
    color: #fff;
}

/* Cards */
.card-body {
    background: #ffffff;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* SEO content */
.seo-content {
    background: #f8f6fa;
}

/* Footer dark */
.footer {
    background: #070310;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-title {
    color: #D4A24C;
}

/* Header dark */
.header {
    background: #0C0416;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header a,
.header .nav-link,
.header .header-logo,
.nav-dropdown a,
.breadcrumb a,
.casino-card-new-btn,
.sidebar-widget a {
    text-decoration: none !important;
}

/* Hero BG override */
.hero-bg {
    background: linear-gradient(180deg, #0C0416 0%, #150E2A 50%, #0C0416 100%);
}

/* Hero decorations - gold tint */
.hero-decor-left::before,
.hero-decor-right::before,
.hero-decor-chips::before,
.hero-decor-chips::after {
    border-color: rgba(212, 162, 76, 0.2);
}

.hero-decor-dice::before {
    border-color: rgba(212, 162, 76, 0.2);
}

.hero-decor-dice::after {
    background: rgba(212, 162, 76, 0.3);
    box-shadow: -22px -22px 0 rgba(212, 162, 76, 0.3), 22px 22px 0 rgba(212, 162, 76, 0.3);
}

/* Forms on white */
.form-input,
.form-textarea {
    background: #ffffff;
    border-color: rgba(76, 31, 122, 0.15);
    color: #333;
}

.form-label {
    color: #333;
}

/* Sidebar on white */
.sidebar-widget {
    background: #f8f6fa;
}

/* Pagination on white */
.pagination-list li a,
.pagination-list li span {
    background: #ffffff;
    border-color: rgba(76, 31, 122, 0.15);
    color: #333;
}

.pagination-list li a:hover {
    border-color: #D4A24C;
    color: #D4A24C;
}

/* Article tags */
.article-tags-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(212, 162, 76, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.15);
}

.article-tag {
    background: #f8f6fa;
    border-color: rgba(76, 31, 122, 0.15);
}

.article-tag:hover {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
}

/* Hide dark-themed decorations on white inner pages */
.page-decor {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-split .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-parallax {
        min-height: 300px;
    }
    .blurb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .articles-table .article-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-parallax {
        display: none;
    }
    .blurb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blurb-grid {
        grid-template-columns: 1fr;
    }
}
