/* Container */
.ytg-container {
    background: none;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Window */
.ytg-window {
    width: 90vw;
    max-width: 900px;
    background: #FFFFFF;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Header */
.ytg-header {
    background: #282828;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.ytg-header h1 {
    margin: 0;
    font-size: 24px;
    color: #FFFFFF;
}

.ytg-traffic-lights {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
}

.ytg-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.red { background: #ff5f57; }
.yellow { background: #ffbc2f; }
.green { background: #28c941; }

/* Content */
.ytg-content {
    padding: 20px;
    background: #FFFFFF;
    border-radius: 0 0 20px 20px;
}

.ytg-content p {
    font-size: 16px;
    color: #282828;
    margin: 20px 0;
}

/* Input Wrapper */
.ytg-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ytg-input {
    width: 60%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    background: #FFFFFF;
    color: #282828;
    transition: border-color 0.3s ease;
}

.ytg-input:focus {
    border-color: #FF0000;
    outline: none;
}

.ytg-button {
    padding: 12px 24px;
    background: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ytg-button:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ytg-button i {
    margin-right: 8px;
}

/* Features */
.ytg-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ytg-features span {
    font-size: 14px;
    color: #282828;
}

.ytg-features i {
    margin-right: 5px;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF0000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Area */
.ytg-result {
    margin-top: 20px;
}

.ytg-video-info {
    margin-bottom: 20px;
}

.ytg-video-info h2 {
    font-size: 24px;
    color: #282828;
    margin: 0 0 10px;
}

.ytg-video-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.ytg-video-info img {
    width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.ytg-transcript {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    color: #282828;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.ytg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ytg-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ytg-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ytg-action-btn i {
    margin-right: 5px;
}

.ytg-action-btn.chat {
    background: #FF0000;
    color: #FFFFFF;
}

.ytg-action-btn.chat:hover {
    background: #CC0000;
}

.ytg-action-btn.summarize {
    background: #2196F3;
    color: #FFFFFF;
}

.ytg-action-btn.summarize:hover {
    background: #1976D2;
}

.ytg-action-btn.copy {
    background: #282828;
    color: #FFFFFF;
}

.ytg-action-btn.copy:hover {
    background: #333333;
}

.ytg-action-btn.language {
    background: #FF5722;
    color: #FFFFFF;
}

.ytg-action-btn.language:hover {
    background: #E64A19;
}

.ytg-action-btn.remove {
    background: #F44336;
    color: #FFFFFF;
}

.ytg-action-btn.remove:hover {
    background: #D32F2F;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ytg-window {
        width: 100%;
        max-width: 100%;
    }
    .ytg-input-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .ytg-input, .ytg-button {
        width: 100%;
    }
    .ytg-features {
        flex-direction: column;
        gap: 10px;
    }
}