/*
 * Copyright (c) 2025 Sully Greene (@SullyGreene). All rights reserved.
 *
 * This CSS file is the property of the developer and is intended for use with the FreeViewKodi project.
 * Unauthorized use, distribution, or modification of this file is prohibited without express permission.
 */

/* This stylesheet contains all custom CSS for the Kodi addon website.
    It should be linked to every HTML page to ensure a consistent look and feel.
    It has been updated to a "glass" style with a Kodi and Netflix-inspired color palette.
*/

/* Use the Inter font, loaded from Google Fonts via a link in the HTML head */
body {
    font-family: 'Inter', sans-serif;
    /* Create a subtle background gradient for the glass effect to be visible */
    background-image: linear-gradient(135deg, #1A202C, #2D3748);
}

/* Base container for all content to apply the glass effect */
.bg-gray-800 {
    background-color: rgba(31, 41, 55, 0.75); /* Semi-transparent background */
    backdrop-filter: blur(15px); /* The key to the glass effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(156, 163, 175, 0.2); /* Subtle border */
}

/* Custom styles for code blocks, used on pages like the homepage and data structure page */
.code-block {
    background-color: rgba(17, 24, 39, 0.8);
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.75rem; /* More rounded corners */
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Styling for the copy-to-clipboard button */
.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(75, 85, 99, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #6b7280;
}

/* Updated styling for the main accent color (Kodi blue) */
.text-blue-400 {
    color: #3B82F6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* Glowing effect */
}

/* Updated styling for headers and other key text elements */
.text-blue-300 {
    color: #93C5FD;
}

/* New accent color inspired by Netflix for buttons and interactive elements */
.bg-blue-500 {
    background-color: #E50914;
    transition: all 0.3s ease;
}

.bg-blue-500:hover {
    background-color: #F80000;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.5);
}

/* Custom styles for the "How it Works" flow diagram, used on the main hub page */
.flow-box {
    border: 1px solid rgba(156, 163, 175, 0.2);
    background-color: rgba(63, 78, 100, 0.7);
    backdrop-filter: blur(10px);
}

.flow-arrow {
    color: #E50914; /* Use a pop of Netflix red for the arrows */
    font-weight: bold;
}

/* Updated card background for a more consistent glass look */
.bg-gray-700 {
    background-color: rgba(55, 65, 81, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 163, 175, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Custom styles for the details/summary element for the troubleshooting section on help.html */
summary {
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    color: #fff;
}
summary::before {
    content: "▶";
    margin-right: 0.5rem;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}
details[open] summary::before {
    transform: rotate(90deg);
}
.bg-gray-600 {
    background-color: rgba(75, 85, 99, 0.6);
}

/* General Link Styling */
a {
    color: #93C5FD;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #E50914; /* Netflix red on hover */
}
