
/* ---BLACKBERRY APP WORLD 2010 STYLE--- */

/* ---HEADER--- */

.tbBox {
    background: linear-gradient(to bottom, #1a1a1a 0%, #000 50%, #0a0a0a 100%);
    width: 100%;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.8);
    position: relative;
}

.tbBox::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand img.header-logo {
    height: 30px;
    object-fit: contain;
}

.header-tagline {
    font-family: 'Nunito Sans', Arial, sans-serif;
    font-size: 14px;
    color: #aaa;
    font-weight: 300;
    letter-spacing: 0.4px;
    white-space: nowrap;
    padding-left: 4px;
}

.header-nav {
    display: flex;
    gap: 0;
}

.header-nav a {
    display: block;
    padding: 8px 16px;
    color: #aaa;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-left: 1px solid #222;
    transition: all 0.15s;
}

.header-nav a:first-child {
    border-left: none;
}

.header-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.title {
    display: none;
}

nav {
    display: none;
}


/* ---GLASS NAVIGATION BAR--- */

.glass-navbar {
    background: linear-gradient(to bottom, #2a2a2a 0%, #111 40%, #0a0a0a 100%);
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 4px rgba(0,0,0,0.6);
    position: relative;
}

.glass-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.07), transparent);
    pointer-events: none;
}

.glass-navbar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.glass-navbar-inner a {
    display: block;
    padding: 10px 18px;
    color: #bbb;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    position: relative;
    transition: all 0.15s;
}

.glass-navbar-inner a:hover,
.glass-navbar-inner a.active {
    color: #fff;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
}

.glass-navbar-inner a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #cc0000;
}


/* ---HERO CAROUSEL--- */

.hero-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    height: 320px;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, #1a1a1a 0%, #000 70%);
}

.carousel-track {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 40px 60px;
    gap: 40px;
}

.slide-text {
    flex: 1;
}

.slide-text h1 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.slide-text p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 380px;
}

.slide-buttons {
    display: flex;
    gap: 10px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.slide-btn i {
    font-size: 10px;
}

.slide-btn-primary {
    background: linear-gradient(to bottom, #e85000 0%, #cc3300 100%);
    color: #fff;
    border: 1px solid #aa2200;
    box-shadow: 0 2px 6px rgba(200, 60, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.slide-btn-primary:hover {
    background: linear-gradient(to bottom, #ff6600 0%, #dd4400 100%);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(200, 60, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}

.slide-btn-outline {
    background: transparent;
    color: #ddd;
    border: 1px solid #555;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.slide-btn-outline:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: #777;
    text-shadow: none;
}

.slide-visual {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual img {
    height: 140px;
    opacity: 0.9;
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.1));
}

.slide-hero-icon {
    font-size: 120px;
    color: #222;
    text-shadow: 0 0 60px rgba(255,255,255,0.08);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.carousel-prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.carousel-next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #555;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.dot.active {
    background: #fff;
    border-color: #fff;
}

.dot:hover {
    border-color: #aaa;
}


/* ---PROMO STRIP--- */

.promo-strip {
    background: linear-gradient(to bottom, #111, #0a0a0a);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.promo-strip-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.promo-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #aaa;
    border-right: 1px solid #222;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.promo-card:last-child {
    border-right: none;
}

.promo-card:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    text-shadow: none;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), transparent);
}

.promo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(to bottom, #2a2a2a, #111);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #777;
    border: 1px solid #333;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.promo-card:hover .promo-icon {
    color: #bbb;
}

.promo-label {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}


/* ---APP WORLD LAYOUT--- */

.appworld-wrapper {
    display: flex;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.appworld-sidebar {
    width: 190px;
    min-width: 190px;
}

.sidebar-panel {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    margin-bottom: 15px;
}

.sidebar-header {
    background: linear-gradient(to bottom, #333 0%, #1a1a1a 100%);
    padding: 10px 14px;
    font-weight: bold;
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    position: relative;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
    border-radius: 6px 6px 0 0;
}

.appworld-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.appworld-sidebar ul li {
    border-bottom: 1px solid #1a1a1a;
}

.appworld-sidebar ul li:last-child {
    border-bottom: none;
}

.appworld-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: #999;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.appworld-sidebar ul li:first-child a {
    border-top: none;
}

.appworld-sidebar ul li a:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    color: #fff;
    text-shadow: none;
}

.appworld-sidebar ul li a i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
    color: #555;
    font-size: 11px;
}

.appworld-sidebar ul li a:hover i {
    color: #888;
}

.appworld-main {
    flex: 1;
    min-width: 0;
}


/* ---SEARCH BAR--- */

.appworld-search {
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

.appworld-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
    pointer-events: none;
    border-radius: 6px 6px 0 0;
}

.search-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-left img {
    height: 32px;
}

.search-left .site-title {
    font-size: 15px;
    color: #eee;
    font-weight: bold;
    letter-spacing: -0.3px;
}

.search-left .site-subtitle {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.search-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-right input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #444;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(to bottom, #111, #1a1a1a);
    color: #ccc;
    font-size: 12px;
    width: 180px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.search-right input[type="text"]:focus {
    outline: none;
    border-color: #555;
}

.search-right button {
    padding: 6px 12px;
    background: linear-gradient(to bottom, #444, #222);
    border: 1px solid #444;
    border-radius: 0 4px 4px 0;
    color: #ccc;
    font-size: 12px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.search-right button:hover {
    background: linear-gradient(to bottom, #555, #333);
    color: #fff;
}


/* ---CARD GRID--- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.app-card {
    background: linear-gradient(to bottom, #141414, #0a0a0a);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
    pointer-events: none;
    border-radius: 8px 8px 0 0;
}

.app-card:hover {
    border-color: #444;
    background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    color: #fff;
    text-shadow: none;
}

.app-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
}

.app-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
    transition: transform 0.2s ease;
}

.app-card:hover .app-card-icon img {
    transform: scale(1.08);
}

.app-card h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #ddd;
    font-weight: bold;
}

.app-card:hover h4 {
    color: #fff;
}

.app-card p {
    margin: 0;
    font-size: 10px;
    color: #666;
    line-height: 1.4;
}

.app-card:hover p {
    color: #888;
}

.app-card-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    border: 1px solid #333;
    border-radius: 3px;
    background: rgba(255,255,255,0.03);
}


/* ---GLASS PANELS--- */

.featured-section {
    background: linear-gradient(to bottom, #141414, #0a0a0a);
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.featured-header {
    background: linear-gradient(to bottom, #333 0%, #1a1a1a 100%);
    padding: 10px 16px;
    font-weight: bold;
    font-size: 12px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #333;
    position: relative;
}

.featured-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.featured-header i {
    color: #888;
    margin-right: 4px;
}


/* ---WELCOME PANEL--- */

.welcome-text {
    padding: 16px;
}

.welcome-text p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.welcome-text p b {
    color: #ccc;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}


/* ---UPDATES--- */

.updates-list {
    padding: 12px 16px;
}

.updates-list p {
    font-size: 11px;
    color: #777;
    margin: 5px 0;
    line-height: 1.5;
}

.updates-list p b {
    color: #aaa;
}

.updates-list hr {
    border: none;
    border-top: 1px solid #222;
    margin: 12px 0;
}

.discord-btn {
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(to bottom, #5865f2 0%, #4752c4 100%);
    color: #fff !important;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #3c45a5;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-btn:hover {
    background: linear-gradient(to bottom, #6875f5 0%, #5762d5 100%);
    text-shadow: none;
}

.discord-note {
    font-size: 10px !important;
    color: #555 !important;
    margin-top: 8px !important;
}


/* ---FOOTER--- */

.footer {
    background: linear-gradient(to bottom, #111, #000);
    border-top: 1px solid #222;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.footer p {
    font-size: 10px;
    color: #444;
    margin: 3px 0;
    letter-spacing: 0.3px;
}

.footer a {
    color: #666;
}

.footer a:hover {
    color: #999;
    text-shadow: none;
}


/* ---SECTIONS LIST (used on guide pages)--- */

.sectionsListItem {
    background-color: #444;
    max-width: 600px;
    min-width: 200px;
    margin-top: 30px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    left: 0;
    right: 0;
    padding: 10px;
}

.sectionsListItem hr {
    background-color: #222;
    border: 1px solid #222;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sectionsListItem h4 {
    margin-bottom: 5px;
    margin-left: 20px;
}

.sectionContent {
    padding: 10px;
}

.sectionContent a {
    padding: 0;
}

.banner {
    background-color: #222;
    display: flex;
    padding: 5px;
}


/* ---GENERAL PAGE STUFF--- */

html,
body {
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    margin: 0;
    background-color: #000;
    color: #ccc;
    -webkit-font-smoothing: antialiased;
}

a,
a:visited {
    text-decoration: none;
    color: #999;
}

a:hover {
    color: #fff;
    text-shadow: none;
}

.content {
    padding: 10px;
}

.content .button,
.spamspan {
    display: inline-block;
    margin-top: 5px;
    margin-right: 5px;
    padding: 8px;
    background-color: #333;
    color: #ddd;
    text-decoration: none;
    border: 1px solid #444;
}

.content .button:hover,
.menuBtn:hover,
.spamspan:hover {
    background-color: #444;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

section {
    z-index: 10;
    text-align: center;
    padding-top: 8px;
}

section a {
    margin: 8px;
    padding-bottom: 8px;
    display: inline-block;
}

.gallery {
    text-align: center;
}

.gallery img {
    display: inline;
    object-fit: contain;
    width: 220px;
    height: 180px;
    margin: 5px;
    background-color: #000;
}

.logo {
    width: 160px;
    margin-left: auto;
    margin-right: auto;
}


/* ---RESPONSIVE--- */

@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .appworld-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .appworld-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .glass-navbar-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .appworld-search {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .search-right input[type="text"] {
        width: 140px;
    }

    .hero-carousel {
        height: 280px;
    }

    .slide-content {
        padding: 20px 30px;
        flex-direction: column;
        text-align: center;
    }

    .slide-text h1 {
        font-size: 22px;
    }

    .slide-visual {
        display: none;
    }

    .slide-buttons {
        justify-content: center;
    }

    .promo-strip-inner {
        flex-wrap: wrap;
    }

    .promo-card {
        flex: 1 1 45%;
        border-bottom: 1px solid #222;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .promo-card {
        flex: 1 1 100%;
    }
}
