* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #2C5F8D 100%);
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Mobile Warning Banner */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    max-width: 100%;
}

.warning-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}

.warning-text p {
    margin: 0 0 6px 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.95;
}

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

@media (max-width: 768px) {
    .mobile-warning {
        display: block;
    }
    
    body {
        padding-top: 160px;
    }
    
    .warning-content {
        padding: 12px 16px;
    }
    
    .warning-icon {
        font-size: 24px;
    }
    
    .warning-text strong {
        font-size: 14px;
    }
    
    .warning-text p {
        font-size: 12px;
    }
}

.simulator-container {
    display: flex;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    height: 100vh;
    padding: 20px;
    align-items: stretch;
}

/* Control Panel */
.control-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 350px;
    max-width: 400px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.control-panel::-webkit-scrollbar {
    width: 8px;
}

.control-panel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.control-panel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.control-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
}

.control-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.control-section label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    font-size: 14px;
}

/* URL Bar */
.url-bar {
    display: flex;
    gap: 8px;
}

#url-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#url-input:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-zoom {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #4A90E2;
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.tab-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.tab-btn.active {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
}

/* Device List */
.device-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-list::-webkit-scrollbar {
    width: 8px;
}

.device-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.device-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.device-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.device-btn {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-btn:hover {
    border-color: #4A90E2;
    background: #E8F4FD;
}

.device-btn.active {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
}

.device-btn.hidden {
    display: none;
}

.device-resolution {
    font-size: 11px;
    opacity: 0.7;
    font-weight: normal;
}

/* Dimension Controls */
.dimension-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dimension-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimension-input label {
    margin: 0;
    min-width: 60px;
    font-size: 13px;
}

.dimension-input input {
    flex: 1;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.dimension-input span {
    color: #888;
    font-size: 13px;
}

/* Orientation Controls */
.orientation-controls {
    display: flex;
    gap: 8px;
}

.btn-orientation {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-orientation:hover {
    border-color: #4A90E2;
}

.btn-orientation.active {
    border-color: #4A90E2;
    background: #4A90E2;
    color: white;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-zoom {
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f0f0f0;
    font-size: 18px;
    font-weight: bold;
}

.btn-zoom:hover {
    background: #e0e0e0;
}

#zoom-level {
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
}

/* Device Info */
.device-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-row span:last-child {
    color: #333;
    font-weight: 600;
}

/* Device Wrapper */
.device-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    overflow: hidden;
    z-index: 200;
}

/* Device Frame */
.device-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
    transform-origin: center;
}


.device-screen {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    width: 390px;
    height: 844px;
    transition: all 0.3s ease;
}

#device-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Device Notch (iPhone style) */
.device-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    display: none;
}

.device-frame.has-notch .device-notch {
    display: block;
}

/* Device Shadow */
.device-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(20px);
}


/* Billboard Promotional Section */
.billboard-promo {
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    max-width: 380px;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.promo-ai {
    border-left-color: #10a37f;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
}

.promo-news {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fef5f3 100%);
}

.promo-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: inline-block;
}

.promo-card h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.promo-card p {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.promo-card p:last-of-type {
    margin-bottom: 10px;
}

.promo-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.2s;
}

.promo-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

/* Powered By Footer */
.powered-by {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    text-align: center;
    border-top: 2px solid #4A90E2;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.powered-by p {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.powered-by a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: #357ABD;
    text-decoration: underline;
}

.powered-by .separator {
    margin: 0 10px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1200px) {
    .simulator-container {
        flex-direction: column;
        align-items: center;
    }
    
    .control-panel {
        max-width: 100%;
        width: 100%;
    }
    
    .billboard-promo {
        position: static;
        max-width: 100%;
        margin: 20px auto;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 60px;
    }
    
    .device-frame {
        transform: scale(0.8);
    }
    
    .billboard-promo {
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .promo-card {
        padding: 12px 16px;
    }
    
    .promo-card h3 {
        font-size: 13px;
    }
    
    .promo-card p {
        font-size: 11px;
    }
    
    .powered-by {
        padding: 10px;
    }
    
    .powered-by p {
        font-size: 11px;
    }
    
    .powered-by .separator {
        display: none;
    }
}
