/* Project Preview Styles */
.project-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-preview h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.preview-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.preview-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #ffbd2e; }
.preview-dot.green { background: #28ca42; }

.preview-url {
    flex: 1;
    background: #404040;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #ccc;
    font-family: 'Courier New', monospace;
}

.preview-frame {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    transform: scale(0.8);
    transform-origin: 0 0;
    width: 125%;
    height: 125%;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

.preview-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preview-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for preview */
@media (max-width: 768px) {
    .preview-frame {
        height: 300px;
    }
    
    .preview-frame iframe {
        transform: scale(0.6);
        width: 166%;
        height: 166%;
    }
    
    .preview-url {
        font-size: 0.8rem;
        display: none;
    }
}