/* ========================================
   BROWSER WINDOW STYLING
   ======================================== */

.browser-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f5f5;
}

.browser-tabs {
    display: flex;
    gap: 2px;
    background: #d4d4d4;
    padding: 8px 8px 0 8px;
}

.browser-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8e8e8;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.15s ease;
    min-width: 200px;
    max-width: 250px;
}

.browser-tab i {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.browser-tab span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-tab:hover {
    background: #f0f0f0;
}

.browser-tab.active {
    background: #ffffff;
    color: #1a202c;
}

.browser-address-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.browser-address-bar i {
    width: 16px;
    height: 16px;
    color: #48bb78;
    flex-shrink: 0;
}

.browser-url {
    flex: 1;
    padding: 8px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: #2d3748;
}

/* Browser Content & Iframes */
.browser-content {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.browser-iframe.active {
    display: block;
}

.browser-page {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

.browser-page.active {
    display: flex;
}

.browser-preview-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.browser-preview-card h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.browser-preview-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.preview-repos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    font-size: 13px;
    color: #555;
    font-family: var(--font-mono);
}

.preview-button {
    background: #367bf0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.preview-button:hover {
    background: #2563eb;
}

.browser-go {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
}

.browser-go:hover {
    background: #eee;
    color: #333;
}