/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Site Box */
.site-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Preview */
.preview {
    height: 250px;
    position: relative;
    overflow: hidden;
}

/* Browser Bar */
.browser-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #28ca42;
}

.url {
    flex: 1;
    background: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Content */
.content {
    position: relative;
    height: calc(100% - 40px);
    background: white;
}

/* Iframe */
.iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    width: 200%;
    height: 200%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe.loaded {
    opacity: 1;
}

/* Placeholder */
.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: white;
    transition: opacity 0.3s ease;
}

.iframe.loaded + .placeholder {
    opacity: 0;
    pointer-events: none;
}

.placeholder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.placeholder-logo {
    width: 80px;
    height: 12px;
    background: #667eea;
    border-radius: 6px;
}

.placeholder-nav {
    display: flex;
    gap: 12px;
}

.placeholder-nav span {
    width: 50px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

.placeholder-main {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.placeholder-title {
    width: 200px;
    height: 16px;
    background: #374151;
    border-radius: 8px;
    margin: 0 auto 12px;
}

.placeholder-text {
    width: 150px;
    height: 10px;
    background: #9ca3af;
    border-radius: 5px;
    margin: 0 auto 15px;
}

.placeholder-button {
    width: 100px;
    height: 24px;
    background: #667eea;
    border-radius: 12px;
    margin: 0 auto;
}

.placeholder-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.placeholder-card {
    height: 60px;
    background: #f1f3f4;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

/* Info */
.info {
    padding: 20px;
    text-align: center;
}

.info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.info p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Message */
.message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.show {
    opacity: 1;
}

/* Floating Shapes */
.floating-shape {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease;
}

.floating-shape.visible {
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Focus Styles */
.site-box:focus {
    outline: 3px solid #667eea;
    outline-offset: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .container {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .preview {
        height: 220px;
    }
}