/*
Theme Name: Angel Apps Theme
Theme URI: https://www.angelapplications.co.uk
Author: Angel App Publishing Ltd
Author URI: https://www.angelapplications.co.uk
Description: A stunning dark theme with purple gradients showcasing our extensive app portfolio
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angel-apps
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark
*/

:root {
    /* Purple Palette */
    --purple-light: #a78bfa;
    --purple-primary: #8b5cf6;
    --purple-deep: #7c3aed;
    --purple-dark: #6d28d9;
    --purple-darker: #5b21b6;

    /* Pink/Magenta accents */
    --pink-primary: #ec4899;
    --pink-light: #f472b6;

    /* Dark backgrounds */
    --bg-primary: #0a0b1e;
    --bg-secondary: #13152a;
    --bg-card: #1a1d3a;
    --bg-card-hover: #232749;

    /* Text colors */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #1a1d3a 0%, #13152a 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.5), 0 0 40px rgba(236, 72, 153, 0.3);
    --glow-purple-strong: 0 0 30px rgba(139, 92, 246, 0.7), 0 0 60px rgba(139, 92, 246, 0.5), 0 0 90px rgba(139, 92, 246, 0.3);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-white);
    position: relative;
}

h1 { font-size: 4rem; letter-spacing: -0.02em; }
h2 { font-size: 3rem; letter-spacing: -0.01em; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--pink-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-purple-strong);
    color: var(--text-white);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--text-white);
    box-shadow: var(--glow-pink);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.7), 0 0 60px rgba(236, 72, 153, 0.5);
    color: var(--text-white);
}

/* Header Styles */
.site-header {
    background: rgba(10, 11, 30, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 11, 30, 0.95);
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    transition: var(--transition);
}

.site-logo img:hover {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8));
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.main-navigation a:hover::before {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--purple-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    background: var(--bg-primary);
    color: var(--text-white);
    padding: 10rem 2rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-secondary), transparent);
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--text-white);
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-item {
    text-align: center;
    padding: 2rem 2.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--glow-purple);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* App of the Day Section */
.app-of-day-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--glow-purple);
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.app-of-day-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition-slow);
}

.app-of-day-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 32px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.app-of-day-card:hover::before {
    opacity: 0.2;
}

.app-of-day-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
    background: var(--bg-card-hover);
}

.app-of-day-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    box-shadow: var(--glow-pink);
    animation: pulse 2s ease-in-out infinite;
}

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

.app-icon-wrapper {
    position: relative;
}

.app-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-glow);
    border-radius: 32px;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.app-icon-featured {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.app-details h3 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.app-category {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.app-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.app-features li {
    padding: 0.75rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-primary);
    font-size: 1rem;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple-light);
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: var(--glow-purple);
}

/* App Grid Section */
.app-grid-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.app-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--bg-card-hover);
}

.app-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.75rem;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.app-card:hover .app-icon {
    transform: scale(1.05);
    box-shadow: var(--glow-purple);
}

.app-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.app-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-link {
    color: var(--purple-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.app-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.app-link:hover::after {
    margin-left: 1rem;
}

/* Footer */
.site-footer {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-section h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--purple-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: var(--text-white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-of-day-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem;
    }

    .app-of-day-badge {
        top: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 968px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .hero-section {
        padding: 6rem 2rem 5rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 11, 30, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    }

    .main-navigation.active ul {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }

    .main-navigation.active li {
        width: 100%;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .main-navigation.active a {
        display: block;
        padding: 1.25rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 2rem;
    }
}
