/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-container {
        height: 400px;
    }
    
    .intro-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .platform-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        max-height: 40px;
    }
    
    .platform-name {
        font-size: 1.2rem;
    }
    
    
    .header-actions {
        gap: 10px;
    }
    
    .language-select {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Banner */
    .banner-container {
        height: 300px;
    }
    
    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .banner-controls {
        padding: 0 10px;
    }
    
    .banner-indicators {
        bottom: 10px;
    }
    
    .banner-indicator {
        width: 10px;
        height: 10px;
    }
    
    .banner-indicator.active {
        width: 25px;
    }
    
    /* Notice */
    .notice-content {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 8px;
    }
    
    .notice-icon {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .notice-scroll-wrapper {
        height: 20px;
        flex: 1;
        min-width: 0;
    }
    
    .notice-scroll-text {
        font-size: 12px;
        line-height: 20px;
    }
    
    /* Intro */
    .intro-section {
        padding: 2rem 0;
    }
    
    .intro-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Links */
    .links-section {
        padding: 0rem 0;
        min-height: auto;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .links-section {
        padding: 1rem 0 3rem 0;
    }
    
    .links-section .container {
        padding: 0 15px;
    }
    
    .platform-links-table-wrapper {
        overflow-x: visible;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .platform-links-table {
        font-size: 0.85rem;
        width: 100%;
        table-layout: fixed;
    }
    
    .platform-links-table thead {
        display: table-header-group;
    }
    
    .platform-links-table th {
        padding: 0.6rem 0.3rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: center;
    }
    
    .platform-links-table tbody tr {
        display: table-row;
    }
    
    .platform-links-table tbody td {
        display: table-cell;
        padding: 0.6rem 0.3rem;
        vertical-align: middle;
        border: none;
        text-align: center;
    }
    
    .platform-links-table tbody td:before {
        display: none;
    }
    
    .platform-link-speed {
        font-size: 0.75rem;
        text-align: center;
        min-width: 0;
        padding: 0.5rem 0.2rem;
        display: inline-block;
        margin: 0;
    }
    
    .platform-link-image-cell {
        width: 15%;
        padding: 0.4rem 0.2rem;
        text-align: center;
    }
    
    .platform-link-image-wrapper {
        width: 28px;
        height: 28px;
        margin: 0 auto;
    }
    
    .platform-link-name-cell {
        width: 32%;
        font-size: 0.8rem;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        min-width: 0;
        padding: 0.5rem 0.3rem;
        text-align: center;
    }
    
    .platform-link-action-cell {
        width: 20%;
        text-align: center;
        padding: 0.4rem 0.2rem;
    }
    
    .platform-link-btn {
        min-width: 50px;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .language-select {
        min-width: 80px;
        max-width: 120px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Service */
    .service-section {
        padding: 2rem 0;
    }
    
    .service-image {
        max-width: 250px;
    }
    
    .service-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .floating-service {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .service-icon {
        font-size: 24px;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    /* Popup */
    .popup-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .popup-text {
        font-size: 14px;
    }
    
    .popup-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .popup-confirm {
        width: 100%;
    }
}

/* Small Mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .platform-name {
        font-size: 1rem;
    }
    
    .banner-container {
        height: 250px;
    }
    
    .banner-prev,
    .banner-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .platform-link-card {
        padding: 1rem;
    }
    
    .platform-links-table {
        font-size: 0.75rem;
    }
    
    .platform-links-table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        text-align: center;
    }
    
    .platform-links-table tbody td {
        padding: 0.5rem 0.25rem;
        text-align: center;
    }
    
    .platform-link-speed {
        font-size: 0.7rem;
        padding: 0.45rem 0.15rem;
        text-align: center;
        display: inline-block;
        margin: 0;
    }
    
    .platform-link-image-cell {
        width: 15%;
        padding: 0.35rem 0.15rem;
    }
    
    .platform-link-image-wrapper {
        width: 24px;
        height: 24px;
    }
    
    .platform-link-name-cell {
        width: 32%;
        font-size: 0.75rem;
        padding: 0.45rem 0.2rem;
        text-align: center;
    }
    
    .platform-link-action-cell {
        width: 20%;
        padding: 0.35rem 0.15rem;
        text-align: center;
    }
    
    .platform-link-btn {
        min-width: 45px;
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .service-image {
        max-width: 200px;
    }
    
    .floating-service {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .service-icon {
        font-size: 20px;
    }
}

/* Large Desktop (min-width: 1440px) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .banner-container {
        height: 600px;
    }
    
    .intro-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .platform-links {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Landscape Orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .banner-container {
        height: 250px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    .header-actions,
    .banner-controls,
    .banner-indicators,
    .floating-service,
    .popup-modal {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

