/* Twitter Video Downloader Plugin Styles */

.tvd-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #1DA1F2;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#tvd-url{
	border:0px;
	background:#ffffff00;
	border-radius:30px
}

.tvd-hero h1 {
    margin-top: 0;
    margin-bottom: 10px;
/*     color: #1da1f2; */
    color: #fff !important;
    /* Twitter Blue */
	font-size: 24px;
	text-align: center;
}

.tvd-hero p {
    color: #fff;
	margin-bottom: 20px;
	text-align: center;
}

.tvd-thumb-col{
	display: flex;
	justify-content: center;
	flex-direction: column;
}

.tvd-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    /* Spacing for the internal buttons */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.tvd-input-wrapper:focus-within {
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.15);
    border-color: #1da1f2;
}

.tvd-form-control {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    background: transparent;
    outline: none;
    min-width: 0;
    color: #333;
}

/* Common Button Styles inside Wrapper */
.tvd-input-wrapper button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    padding: 8px 20px;
    white-space: nowrap;
}

.tvd-input-wrapper button:active {
    transform: scale(0.98);
}

.tvd-icon {
    display: flex;
    align-items: center;
}

/* Paste Button specific */
.tvd-paste-btn {
    background-color: #1da1f2;
    /* Twitter Blue */
    color: white;
    margin-right: 5px;
}

.tvd-paste-btn:hover {
    background-color: #0d8bd9;
    color: white;
}

/* Desktop Download Button specific */
.tvd-btn.tvd-desktop-only {
    background-color: #28a745;
    /* Green */
    color: white;
    margin-right: 0;
}

.tvd-btn.tvd-desktop-only:hover {
    background-color: #218838;
}

/* Mobile Download Button (Outside) */
.tvd-btn.tvd-mobile-only {
    display: none;
    width: 100%;
    margin-top: 15px;
    border-radius: 50px;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-weight: 600;
    border: none;
    font-size: 16px;
}

/* Results */
.tvd-result-container {
    margin-top: 30px;
}

.tvd-error {
    background-color: #fff2f2;
    color: #d32f2f;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

.tvd-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 480px) {
    .tvd-card {
        flex-direction: row;
    }

    .tvd-thumb-col {
        width: 40%;
    }

    .tvd-body-col {
        width: 60%;
    }
}

.tvd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tvd-body {
    padding: 15px;
}

.tvd-user {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.tvd-text {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    margin-bottom: 15px;
}

.tvd-download-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tvd-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    transition: background 0.2s;
}

.tvd-download-item:hover {
    background: #eef7ff;
    border-color: #b3d7ff;
}

.tvd-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

.tvd-dl-btn {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    border: none;
}

/* Responsive Plugin Styles */
@media (max-width: 600px) {
    .tvd-container {
        padding: 20px;
        margin: 10px;
        width: auto;
    }

    /* Keep wrapper as flex row for Input + Paste Icon */
    .tvd-input-wrapper {
        padding: 5px;
    }

    /* Hide desktop download button */
    .tvd-desktop-only {
        display: none !important;
    }

    /* Show mobile download button */
    .tvd-mobile-only {
        display: block !important;
    }

    /* Paste Button on Mobile: Icon Only */
    .tvd-paste-btn {
        padding: 10px;
        /* Square/Circle aspect */
        margin-right: 0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .tvd-btn-text {
        display: none;
    }

    .tvd-input-wrapper button {
        gap: 0;
    }

    .tvd-form-control {
        padding-right: 5px;
        /* Less padding on right since button is close */
    }

    /* Results Card Stack */
    .tvd-card {
        flex-direction: column;
    }

    .tvd-thumb-col,
    .tvd-body-col {
        width: 100%;
    }

    .tvd-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tvd-download-item button {
        width: 100%;
    }
}