/*
Theme Name: Phantom Reels
Description: A spooky Halloween social casino WordPress theme with phantom coins gaming experience. Features haunted slot reels, ghostly blackjack, phantom poker, and more spooky games with virtual currency only.
Author: Phantom Reels Team
Version: 2.3.0
Text Domain: phantom-reels
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: casino, gaming, halloween, spooky, entertainment, social-casino, phantom-coins
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Theme Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #7f1d1d 25%, #581c87 50%, #7f1d1d 75%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* WordPress Core Styles */
.site-main {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Custom Theme Styles */
.phantom-reels-theme {
    background: linear-gradient(135deg, #000000 0%, #7f1d1d 25%, #581c87 50%, #7f1d1d 75%, #000000 100%);
    background-attachment: fixed;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

/* Button Styles */
button,
.button,
input[type="submit"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:disabled,
.button:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Utility Classes */
.drop-shadow-lg {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

.drop-shadow-sm {
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3rem;
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-4 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

/* WordPress Admin Bar Compatibility */
body.admin-bar {
    padding-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 46px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-black,
    .bg-red-950,
    .bg-purple-950 {
        background: white !important;
    }
    
    .text-white {
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-bounce,
    .animate-ping {
        animation: none;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-300 {
        color: #ffffff;
    }
    
    .text-gray-400 {
        color: #cccccc;
    }
    
    .border-red-500\/30 {
        border-color: #ef4444;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Error States */
.error {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.success {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Selection Styles */
::selection {
    background-color: #ef4444;
    color: white;
}

::-moz-selection {
    background-color: #ef4444;
    color: white;
}

/* Page Content Styling - Terms & Policy Pages */
.entry-content p,
.site-main p,
article p {
    margin-bottom: 1.25rem;
}

.entry-content h2,
.site-main h2,
article h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.entry-content h3,
.site-main h3,
article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.entry-content ul,
.site-main ul,
article ul {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    list-style-type: disc;
}

.entry-content li,
.site-main li,
article li {
    margin-bottom: 0.5rem;
}

/* Fix IMPORTANT boxes on Responsible Gaming and other pages */
.entry-content div[style*="background: #fee"],
.site-main div[style*="background: #fee"],
article div[style*="background: #fee"],
.entry-content p[style*="background: #f0f0f0"],
.site-main p[style*="background: #f0f0f0"],
article p[style*="background: #f0f0f0"],
.entry-content p[style*="background:#f0f0f0"],
.site-main p[style*="background:#f0f0f0"],
article p[style*="background:#f0f0f0"] {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 2px solid #ef4444 !important;
    color: #ffffff !important;
    padding: 1rem !important;
    margin: 1.25rem 0 !important;
    border-radius: 0.5rem;
}

.entry-content div[style*="background: #fee"] p,
.site-main div[style*="background: #fee"] p,
article div[style*="background: #fee"] p,
.entry-content p[style*="background: #f0f0f0"],
.site-main p[style*="background: #f0f0f0"],
article p[style*="background: #f0f0f0"],
.entry-content p[style*="background:#f0f0f0"],
.site-main p[style*="background:#f0f0f0"],
article p[style*="background:#f0f0f0"] {
    color: #ffffff !important;
}

.entry-content div[style*="background: #fee"] strong,
.site-main div[style*="background: #fee"] strong,
article div[style*="background: #fee"] strong,
.entry-content p[style*="background: #f0f0f0"] strong,
.site-main p[style*="background: #f0f0f0"] strong,
article p[style*="background: #f0f0f0"] strong,
.entry-content p[style*="background:#f0f0f0"] strong,
.site-main p[style*="background:#f0f0f0"] strong,
article p[style*="background:#f0f0f0"] strong {
    color: #fca5a5 !important;
}

.entry-content div[style*="background: #fee"] ul,
.site-main div[style*="background: #fee"] ul,
article div[style*="background: #fee"] ul {
    color: #ffffff !important;
}

.entry-content div[style*="background: #fee"] li,
.site-main div[style*="background: #fee"] li,
article div[style*="background: #fee"] li {
    color: #ffffff !important;
}