/* Google Search - Disguised login page */

/* ===== Page Layout ===== */
.google-app {
    font-family: arial, sans-serif;
    background-color: #fff;
    color: #202124;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.google-app .login-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    justify-content: flex-start;
    min-height: auto;
    width: 100%;
}

/* Hide original terminal elements */
.google-app .login-title,
.google-app .terminals-grid-container,
.google-app .connection-status {
    display: none !important;
}

/* ===== Header ===== */
.google-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
}

.google-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-header-link {
    font-size: 13px;
    color: #202124;
    text-decoration: none;
    line-height: 24px;
    padding: 0 8px;
}

.google-header-link:hover {
    text-decoration: underline;
}

.google-apps-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-apps-btn:hover {
    background-color: rgba(60, 64, 67, 0.08);
}

/* ===== Body / Logo & Search ===== */
.google-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 120px;
    flex-shrink: 0;
}

.google-logo-wrap {
    margin-bottom: 24px;
}

.google-logo {
    width: 272px;
    height: 92px;
    object-fit: contain;
}

/* ===== Search Bar ===== */
.google-search-form {
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.google-search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 14px;
    height: 44px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.google-search-bar:hover,
.google-search-bar:focus-within {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.google-search-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.google-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
    height: 100%;
    font-family: arial, sans-serif;
}

.google-voice-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

/* ===== Search Buttons ===== */
.google-search-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    padding-bottom: 20px;
}

.google-btn {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 4px;
    color: #3c4043;
    font-family: arial, sans-serif;
    font-size: 14px;
    padding: 0 16px;
    height: 36px;
    cursor: pointer;
    min-width: 54px;
    line-height: 27px;
}

.google-btn:hover {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

/* ===== Trending Section (Dashboard Cards) ===== */
.google-trending-section {
    max-width: 650px;
    margin: 10px auto 0;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.google-trending-label {
    font-size: 16px;
    color: #70757a;
    margin-bottom: 14px;
    padding-left: 4px;
}

/* ===== Trending Grid (reuse podcast-grid) ===== */
.google-app .podcast-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

/* ===== Trending Card (reuse podcast-card) ===== */
.google-app .podcast-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 14px;
    border-bottom: 1px solid #ebebeb;
}

.google-app .podcast-card:first-child {
    border-top: 1px solid #ebebeb;
}

.google-app .podcast-card:hover {
    background-color: #f8f9fa;
    transform: none;
    box-shadow: none;
}

/* Card cover becomes a small icon area */
.google-app .podcast-card-cover {
    width: 20px;
    height: 20px;
    aspect-ratio: 1;
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
}

.google-app .podcast-card-cover svg {
    display: none;
}

/* Trending number icon */
.google-app .podcast-card-cover::before {
    font-size: 14px;
    color: #70757a;
    font-weight: 400;
}

/* Card body as text row */
.google-app .podcast-card-body {
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.google-app .podcast-card-title {
    font-size: 14px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.google-app .podcast-card-genre {
    font-size: 12px;
    color: #70757a;
    margin-bottom: 0;
    white-space: nowrap;
}

.google-app .podcast-card-meta {
    display: none;
}

/* ===== Badges ===== */
.google-app .podcast-badges {
    position: static;
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.google-app .badge-live {
    background: #1a73e8;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0;
    animation: none;
}

.google-app .badge-new {
    background: #ea4335;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0;
}

/* ===== Card tints ===== */
.google-app .podcast-card.card-tint-blue {
    background: #fef7e0;
    border: none;
    border-bottom: 1px solid #ebebeb;
}

.google-app .podcast-card.card-tint-blue .podcast-card-cover {
    opacity: 1;
    box-shadow: none;
}

.google-app .podcast-card.card-tint-blue .podcast-card-body {
    background: transparent;
}

.google-app .podcast-card.card-tint-blue:hover {
    background: #fef3c7;
    box-shadow: none;
}

.google-app .podcast-card.card-tint-violet {
    background: #f3f0ff;
    border: none;
    border-bottom: 1px solid #ebebeb;
}

.google-app .podcast-card.card-tint-violet .podcast-card-cover {
    opacity: 1;
    box-shadow: none;
}

.google-app .podcast-card.card-tint-violet .podcast-card-body {
    background: transparent;
}

.google-app .podcast-card.card-tint-violet:hover {
    background: #ede9fe;
    box-shadow: none;
}

/* ===== State backgrounds ===== */
.google-app .podcast-grid.state-violet,
.google-app .podcast-grid.state-blue,
.google-app .podcast-grid.state-gray {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* ===== Trending search icon ===== */
.google-app .trending-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.google-app .trending-icon svg {
    fill: #4285f4;
}

/* ===== Login Overlay ===== */
.google-app #loginForm {
    background: #fff;
    border-radius: 8px;
    padding: 32px 40px;
    max-width: 420px;
    margin: 24px auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.12);
    border: 1px solid #dadce0;
}

.google-app #loginForm .input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.google-app #channelKeyInput {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    color: #202124;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: arial, sans-serif;
}

.google-app #channelKeyInput:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.google-app .login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    background: #1a73e8;
    color: #fff;
    font-family: arial, sans-serif;
}

.google-app .login-button:hover {
    background: #1765cc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.google-app .secure-login-button {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    color: #1a73e8;
    transition: all 0.2s;
    font-family: arial, sans-serif;
}

.google-app .secure-login-button:hover {
    background: #f6fafe;
    border-color: #d2e3fc;
}

.google-app .login-button:disabled,
.google-app .secure-login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-app #errorMessage {
    background: #fce8e6;
    color: #d93025;
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 8px;
}

.google-app .login-info {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.google-app .login-info p {
    color: #70757a !important;
    font-size: 13px !important;
    font-family: arial, sans-serif;
}

.google-app .premium-label {
    text-align: center;
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    font-family: 'Google Sans', arial, sans-serif;
}

.google-app .premium-sublabel {
    text-align: center;
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ===== Footer ===== */
.google-footer {
    margin-top: auto;
    background: #f2f2f2;
    border-top: 1px solid #dadce0;
    font-size: 14px;
    color: #70757a;
}

.google-footer-top {
    padding: 12px 30px;
    border-bottom: 1px solid #dadce0;
}

.google-footer-country {
    color: #70757a;
    font-size: 14px;
}

.google-footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 12px 30px;
    flex-wrap: wrap;
    gap: 8px;
}

.google-footer-left,
.google-footer-right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.google-footer a {
    color: #70757a;
    text-decoration: none;
    font-size: 14px;
}

.google-footer a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .google-body {
        padding-top: 80px;
    }

    .google-logo {
        width: 200px;
        height: 68px;
    }

    .google-search-form {
        max-width: 100%;
        padding: 0 16px;
    }

    .google-trending-section {
        padding: 0 16px;
    }

    .google-header-link {
        font-size: 12px;
    }

    .google-footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .google-footer-left,
    .google-footer-right {
        justify-content: center;
    }

    .google-app #loginForm {
        margin: 20px 16px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .google-body {
        padding-top: 60px;
    }

    .google-logo {
        width: 160px;
        height: 54px;
    }

    .google-search-bar {
        height: 40px;
    }

    .google-search-input {
        font-size: 14px;
    }

    .google-btn {
        font-size: 13px;
        padding: 0 12px;
        height: 32px;
    }

    .google-app #loginForm {
        margin: 16px 12px;
        padding: 20px;
    }
}

/* Location new-check-in indicator */
.location-new-indicator {
    display: inline-flex;
    align-items: center;
    background: #34a853;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
    letter-spacing: 0.2px;
    animation: loc-pulse 2s ease-in-out infinite;
}

@keyframes loc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
