/* ========================================
   THEME COLORS - Edit these to change theme
   ======================================== */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #15151f;
    --tile-bg: #1a1a2e;
    --tile-hover-bg: #202035;
    --accent-color: #00d4ff;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a3e;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body.full-embed {
    padding: 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER
   ======================================== */
header {
    margin-bottom: 20px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    order: -1;
}

.logo {
    width: 160px;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.header-text {
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ========================================
   DASHBOARD GRID
   ======================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* ========================================
   TILES
   ======================================== */
.tile,
.tool-item {
    background: var(--tile-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 240px;
}

.tile--full {
    grid-column: 1 / -1;
}

.tile--promo {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(26, 26, 46, 0.95));
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.25);
}

.tile--promo::before {
    opacity: 0.65;
}

.tile--promo .tile-icon {
    filter: drop-shadow(0 0 18px var(--accent-color));
}

.tile--promo:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 50px rgba(0, 212, 255, 0.4);
}

.tile::before,
.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--accent-glow) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tile:hover,
.tool-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px var(--accent-glow);
    background: var(--tile-hover-bg);
}

.tile:hover::before,
.tool-item:hover::before {
    opacity: 1;
}

.tile > * {
    position: relative;
    z-index: 1;
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center calc(50% - 25px);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.tile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tile-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.tile:hover .tile-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--accent-color));
}

.tile-icon svg {
    width: 100%;
    height: 100%;
}

.tile h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tile p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ========================================
   COMING SOON STYLING
   ======================================== */
.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.coming-soon:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
    background: var(--tile-bg);
}

.coming-soon:hover::before {
    opacity: 0;
}

.coming-soon:hover .tile-icon {
    transform: none;
    filter: none;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--text-secondary);
    color: var(--primary-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tile-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .tile {
        padding: 30px 20px;
        min-height: 230px;
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   BACK BUTTON
   ======================================== */
.back-button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.back-button:hover {
    transform: translateX(-5px);
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.back-button svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   TOOL EMBED
   ======================================== */
.tool-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.tool-embed {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    overflow: hidden;
}
.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.video-tile {
    padding: 0;
    text-align: left;
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(10, 10, 15, 0.4));
    border-bottom: 2px solid var(--border-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb.has-thumb .tile-icon {
    opacity: 0;
}

.video-tile h2,
.video-tile p {
    padding: 0 30px;
}

.video-tile h2 {
    margin-top: 20px;
}

.video-tile p {
    padding-bottom: 24px;
}

/* ========================================
   FEATURED SECTION
   ======================================== */
.featured-section {
    margin-bottom: 20px;
    margin-top: 20px;
}

.featured-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
}

.featured-tile {
    background: var(--tile-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.featured-tile:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 40px var(--accent-glow);
    background: var(--tile-hover-bg);
}

.featured-tile-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-bg), var(--tile-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-tile:hover .featured-tile-image img {
    transform: scale(1.05);
}

.featured-tile-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-color);
    opacity: 0.7;
}

.featured-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-tile-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.featured-header-text {
    flex: 1;
    min-width: 0;
}

.featured-tile-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-tile-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
    margin: 0;
}

.featured-download-btn {
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-self: center;
    z-index: 1;
    text-decoration: none;
}

.featured-download-btn:hover {
    background: #00b8d4;
    transform: scale(1.05);
}

.featured-download-btn svg {
    width: 18px;
    height: 18px;
}

.featured-play-icon {
    position: absolute;
    font-size: 30px;
    color: var(--accent-color);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-tile:hover .featured-play-icon {
    opacity: 1;
}

.featured-seek-bar {
    width: 100%;
    height: 3px;
    background: rgba(0, 212, 255, 0.5);
    position: relative;
    cursor: pointer;
    display: none;
    margin-top: -3px;
    border-radius: 2px;
    padding: 6px 0;
    margin-top: -6px;
}

.featured-seek-bar.playing {
    display: block;
}

.featured-seek-bar-progress {
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    position: absolute;
    top: 6px;
}

.featured-tile-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}