/* ============================================
   CANDYSPIN THEME - responsive.css (moban-87)
   3 Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* === TABLET LANDSCAPE (max-width: 1024px) === */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    /* Header */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-time {
        display: none;
    }

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

    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Hero */
    .candy-hero {
        min-height: 500px;
    }

    .hero-brand {
        font-size: 42px;
        letter-spacing: 5px;
    }

    .hero-tagline {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero-stats-row {
        gap: 25px;
    }

    .hero-stat-number {
        font-size: 24px;
    }

    /* Lollipop Decorations */
    .lollipop-left {
        left: 2%;
    }

    .lollipop-right {
        right: 2%;
    }

    .lollipop-head {
        width: 45px;
        height: 45px;
    }

    .lollipop-stick {
        height: 60px;
        width: 5px;
    }

    /* Candy Reels */
    .candy-reel {
        width: 40px;
        height: 40px;
    }

    .reel-symbol {
        font-size: 18px;
    }

    /* Sweet Games */
    .sweet-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sweet-game-card {
        padding: 25px 15px;
    }

    .sweet-game-icon {
        font-size: 36px;
    }

    /* Candy Grid */
    .candy-grid-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .candy-grid-node {
        flex: 0 0 calc(25% - 10px);
        min-width: 120px;
        padding: 15px 20px;
    }

    .candy-node-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Candy Features */
    .candy-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .candy-feature-card {
        padding: 25px 15px;
    }

    .candy-feature-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    /* Candy Stats */
    .candy-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Candy Promos */
    .candy-promos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .candy-promo-inner {
        padding: 25px 15px;
    }

    /* Footer CTA */
    .footer-cta-inner {
        padding: 30px 15px;
    }

    .footer-cta-inner h2 {
        font-size: 28px;
    }

    /* News */
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .license-icons {
        gap: 15px;
    }

    /* Related Posts */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Article Grid */
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single Post */
    .article-title {
        font-size: 24px;
    }

    /* Floating Sidebar */
    .floating-sidebar {
        right: 10px;
    }

    .sidebar-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Section Titles */
    .section-title {
        font-size: 26px;
    }

    /* Buttons */
    .btn-candy-primary {
        padding: 12px 30px;
        font-size: 16px;
    }

    .btn-outline-candy {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* === TABLET PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-top {
        justify-content: center;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }

    .header-btn-group {
        gap: 6px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation .container {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 10, 30, 0.98);
        padding: 10px 0;
        border-top: 1px solid rgba(255, 105, 180, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 12px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 105, 180, 0.05);
    }

    /* Notification Bar */
    .notification-content {
        font-size: 11px;
    }

    /* Hero */
    .candy-hero {
        min-height: 450px;
        border-radius: 0 0 20px 20px;
    }

    .hero-brand {
        font-size: 36px;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
        padding: 0 10px;
    }

    .hero-stats-row {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 22px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-candy-primary,
    .btn-outline-candy {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 25px;
        font-size: 15px;
    }

    /* Lollipop Decorations */
    .lollipop-decoration {
        opacity: 0.6;
    }

    .lollipop-head {
        width: 35px;
        height: 35px;
    }

    .lollipop-stick {
        height: 45px;
        width: 4px;
    }

    /* Candy Reels */
    .candy-reel {
        width: 35px;
        height: 35px;
    }

    .reel-symbol {
        font-size: 16px;
    }

    /* Sweet Games */
    .sweet-games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sweet-game-card {
        padding: 20px;
    }

    .sweet-game-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .sweet-game-card h3 {
        font-size: 18px;
    }

    /* Candy Grid */
    .candy-grid-node {
        flex: 0 0 calc(50% - 10px);
        min-width: 100px;
    }

    .candy-node-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .candy-node-label {
        font-size: 12px;
    }

    /* Candy Features */
    .candy-features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .candy-feature-card {
        padding: 20px;
    }

    .candy-feature-card h3 {
        font-size: 16px;
    }

    /* Candy Stats */
    .candy-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .candy-stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-candy-decoration i {
        font-size: 18px;
    }

    /* Candy Promos */
    .candy-promos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .candy-promo-inner h3 {
        font-size: 16px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 50px 0;
    }

    .footer-cta-inner {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .footer-cta-inner h2 {
        font-size: 24px;
    }

    .footer-cta-inner p {
        font-size: 14px;
    }

    .cta-features {
        flex-direction: column;
        gap: 10px;
    }

    .cta-main-btn {
        font-size: 16px;
        padding: 14px 35px;
    }

    /* News */
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card-thumb {
        height: 150px;
    }

    .article-card-title {
        font-size: 14px;
        padding: 12px;
    }

    /* Footer */
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer {
        padding: 30px 0 20px;
    }

    .footer-brand-text {
        font-size: 12px;
    }

    .license-icons {
        gap: 12px;
    }

    .license-item i {
        font-size: 20px;
    }

    .license-item span {
        font-size: 10px;
    }

    /* Content Area */
    .content-area {
        flex-direction: column;
    }

    /* Article Grid */
    .article-grid {
        grid-template-columns: 1fr;
    }

    /* Single Post */
    .single-article {
        padding: 20px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-meta {
        gap: 10px;
        font-size: 12px;
    }

    .article-content {
        font-size: 14px;
    }

    /* Related Posts */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-item-thumb {
        height: 90px;
    }

    .related-item-title {
        font-size: 12px;
        padding: 8px;
    }

    /* Page */
    .page-article {
        padding: 20px;
    }

    .page-title {
        font-size: 24px;
    }

    /* Error Page */
    .error-code {
        font-size: 70px;
    }

    .error-title {
        font-size: 22px;
    }

    .error-desc {
        font-size: 14px;
    }

    /* Floating Sidebar */
    .floating-sidebar {
        right: 8px;
    }

    .sidebar-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* Section Titles */
    .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    /* Category */
    .category-title {
        font-size: 24px;
    }

    .provider-tabs {
        gap: 6px;
    }

    .provider-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Pagination */
    .pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    /* Announcement Modal */
    .announcement-content {
        padding: 20px;
        width: 95%;
    }

    .announcement-title {
        font-size: 16px;
    }

    .announcement-header-icon i {
        font-size: 40px;
    }

    .announcement-item {
        padding: 10px;
    }

    .announcement-text {
        font-size: 12px;
    }

    .announcement-cta {
        padding: 10px 30px;
        font-size: 14px;
    }

    /* View More Button */
    .view-more-btn {
        font-size: 14px;
        padding: 10px 25px;
    }

    /* Sugar Particles */
    .sugar-particle {
        width: 6px;
        height: 6px;
    }
}

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    /* Header */
    .logo img {
        height: 35px;
    }

    .header-btn-group {
        gap: 4px;
    }

    .btn-login,
    .btn-register,
    .btn-demo {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 20px;
    }

    /* Navigation */
    .nav-link {
        padding: 10px 15px;
        font-size: 12px;
    }

    /* Notification */
    .notification-bar {
        padding: 6px 0;
    }

    .notification-content {
        font-size: 10px;
        gap: 30px;
    }

    /* Hero */
    .candy-hero {
        min-height: 400px;
    }

    .hero-inner-content {
        padding: 20px 10px;
    }

    .hero-brand {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .hero-divider-line {
        width: 60px;
        margin: 10px auto;
    }

    .hero-tagline {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .hero-stats-row {
        gap: 15px;
    }

    .hero-stat-number {
        font-size: 18px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .btn-candy-primary,
    .btn-outline-candy {
        padding: 10px 20px;
        font-size: 14px;
        max-width: 250px;
    }

    /* Lollipop Decorations */
    .lollipop-decoration {
        display: none;
    }

    /* Candy Reels */
    .candy-reel {
        display: none;
    }

    /* Sweet Games */
    .sweet-games {
        padding: 30px 0;
    }

    .sweet-game-card {
        padding: 15px;
    }

    .sweet-game-icon {
        font-size: 28px;
    }

    .sweet-game-card h3 {
        font-size: 16px;
    }

    .sweet-game-card p {
        font-size: 12px;
    }

    .sweet-game-players {
        font-size: 11px;
    }

    /* Candy Grid */
    .candy-grid {
        padding: 30px 0;
    }

    .candy-grid-node {
        flex: 0 0 calc(50% - 8px);
        padding: 12px 15px;
        min-width: 80px;
    }

    .candy-node-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .candy-node-label {
        font-size: 11px;
    }

    /* Candy Features */
    .candy-features {
        padding: 30px 0;
    }

    .candy-feature-card {
        padding: 18px;
    }

    .candy-feature-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .candy-feature-card h3 {
        font-size: 15px;
    }

    .candy-feature-card p {
        font-size: 12px;
    }

    /* Candy Stats */
    .candy-stats {
        padding: 40px 0;
    }

    .candy-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .candy-stat-card {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-candy-decoration {
        margin-bottom: 10px;
    }

    .stat-candy-decoration i {
        font-size: 16px;
    }

    /* Candy Promos */
    .candy-promos {
        padding: 30px 0;
    }

    .candy-promo-inner {
        padding: 20px 12px;
    }

    .promo-icon i {
        font-size: 30px;
    }

    .candy-promo-inner h3 {
        font-size: 15px;
    }

    .candy-promo-inner p {
        font-size: 12px;
    }

    .btn-promo {
        padding: 8px 20px;
        font-size: 13px;
    }

    /* Footer CTA */
    .footer-cta-section {
        padding: 30px 0;
        margin: 30px 0;
    }

    .footer-cta-inner {
        padding: 20px 12px;
    }

    .cta-candy-decoration i {
        font-size: 40px !important;
    }

    .footer-cta-inner h2 {
        font-size: 20px;
    }

    .footer-cta-inner p {
        font-size: 13px;
    }

    .cta-feature {
        font-size: 12px;
    }

    .cta-main-btn {
        font-size: 14px;
        padding: 12px 25px;
    }

    /* News */
    .home-news-section {
        padding: 30px 0;
    }

    .article-card-thumb {
        height: 130px;
    }

    .article-card-title {
        font-size: 13px;
        padding: 10px;
    }

    .article-card-meta {
        padding: 0 10px;
        font-size: 11px;
    }

    .article-card-excerpt {
        padding: 0 10px 10px;
        font-size: 12px;
    }

    .article-card-more {
        padding: 6px 15px;
        margin: 0 10px 10px;
        font-size: 12px;
    }

    .view-more-btn {
        font-size: 13px;
        padding: 8px 20px;
        max-width: 250px;
    }

    /* Section Titles */
    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 25px;
    }

    /* Footer */
    .site-footer {
        padding: 25px 0 15px;
    }

    .footer-columns-grid {
        gap: 20px;
    }

    .footer-brand-logo img {
        height: 35px;
    }

    .footer-col h4 {
        font-size: 14px;
    }

    .footer-col ul li a {
        font-size: 12px;
    }

    .footer-18plus {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }

    .footer-social-links a {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .footer-license-bar {
        padding: 15px 0;
    }

    .footer-license-bar h4 {
        font-size: 14px;
    }

    .license-icons {
        gap: 10px;
    }

    .license-item i {
        font-size: 18px;
    }

    .license-item span {
        font-size: 9px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    /* Floating Sidebar */
    .floating-sidebar {
        right: 5px;
        gap: 5px;
    }

    .sidebar-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .sidebar-label {
        display: none !important;
    }

    /* Single Post */
    .single-article {
        padding: 15px;
        border-radius: 15px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-meta {
        gap: 8px;
        font-size: 11px;
    }

    .article-content {
        font-size: 13px;
    }

    .article-tags {
        padding-top: 15px;
    }

    .article-tags span {
        padding: 3px 8px;
        font-size: 11px;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    /* Related Posts */
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .related-item-thumb {
        height: 80px;
    }

    .related-item-title {
        font-size: 11px;
        padding: 6px;
    }

    .related-posts-title {
        font-size: 18px;
    }

    /* Page */
    .page-article {
        padding: 15px;
        border-radius: 15px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-content {
        font-size: 14px;
    }

    /* Category */
    .category-header {
        padding: 20px 0;
    }

    .category-title {
        font-size: 20px;
    }

    .provider-tabs {
        gap: 4px;
    }

    .provider-tab {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Pagination */
    .pagination {
        gap: 5px;
    }

    .pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Error Page */
    .error-page {
        padding: 50px 15px;
    }

    .error-candy i {
        font-size: 50px !important;
    }

    .error-code {
        font-size: 60px;
    }

    .error-title {
        font-size: 18px;
    }

    .error-desc {
        font-size: 13px;
    }

    /* Announcement Modal */
    .announcement-content {
        padding: 15px;
        border-radius: 15px;
    }

    .announcement-title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .announcement-header-icon i {
        font-size: 35px;
    }

    .announcement-item {
        padding: 8px;
        gap: 8px;
    }

    .announcement-badge {
        padding: 2px 6px;
        font-size: 9px;
    }

    .announcement-text {
        font-size: 11px;
    }

    .announcement-cta {
        padding: 8px 25px;
        font-size: 13px;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 10px 0;
        font-size: 12px;
    }

    /* Sugar Particles */
    .sugar-particle {
        width: 5px;
        height: 5px;
    }

    /* Swiper */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

/* === EXTRA SMALL MOBILE (max-width: 360px) === */
@media (max-width: 360px) {
    .hero-brand {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-stats-row {
        gap: 10px;
    }

    .hero-stat-number {
        font-size: 16px;
    }

    .candy-grid-node {
        flex: 0 0 100%;
    }

    .candy-stats-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
