/* VideoQollanmalar Frontend Styles */

.vq-registration-form,
.vq-upload-form,
.vq-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vq-registration-form h2,
.vq-upload-form h2,
.vq-dashboard h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.vq-form-row {
    margin-bottom: 20px;
}

.vq-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.vq-form-row input[type="text"],
.vq-form-row input[type="email"],
.vq-form-row input[type="tel"],
.vq-form-row input[type="url"],
.vq-form-row input[type="password"],
.vq-form-row select,
.vq-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.vq-form-row input:focus,
.vq-form-row select:focus,
.vq-form-row textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.vq-form-row small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

.vq-submit-btn,
.vq-btn {
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.vq-submit-btn:hover,
.vq-btn:hover {
    background: #135e96;
}

.vq-cancel-btn {
    background: #ddd;
    color: #333;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

.vq-cancel-btn:hover {
    background: #ccc;
}

#vq-registration-message,
#vq-upload-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.vq-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.vq-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.vq-video-source-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.vq-video-source-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Dashboard Styles */
.vq-dashboard {
    max-width: 1200px;
}

.vq-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.vq-dashboard-header p {
    font-size: 18px;
    color: #666;
}

.vq-dashboard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.vq-btn-primary {
    background: #2271b1;
}

.vq-btn-secondary {
    background: #666;
}

.vq-btn-primary:hover {
    background: #135e96;
}

.vq-btn-secondary:hover {
    background: #444;
}

.vq-user-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.vq-user-info h3 {
    margin-top: 0;
}

.vq-info-table {
    width: 100%;
    border-collapse: collapse;
}

.vq-info-table th,
.vq-info-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.vq-info-table th {
    width: 30%;
    font-weight: 600;
}

.vq-videos-section h3 {
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.vq-no-videos {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.vq-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vq-video-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.vq-video-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vq-video-thumbnail {
    background: #000;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
}

.vq-video-thumbnail video,
.vq-video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vq-video-info {
    padding: 15px;
}

.vq-video-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.vq-video-date {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.vq-video-description {
    color: #333;
    margin: 10px 0;
}

.vq-video-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vq-btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

.vq-btn-danger {
    background: #dc3545;
}

.vq-btn-danger:hover {
    background: #c82333;
}

/* Modal */
.vq-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.vq-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    max-width: 800px;
    position: relative;
}

.vq-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.vq-close:hover,
.vq-close:focus {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {

    .vq-registration-form,
    .vq-upload-form,
    .vq-dashboard {
        padding: 20px;
        margin: 20px;
    }

    .vq-videos-grid {
        grid-template-columns: 1fr;
    }

    .vq-dashboard-actions {
        flex-direction: column;
    }

    .vq-video-actions {
        flex-direction: column;
    }

    .vq-btn-small {
        width: 100%;
        text-align: center;
    }
}