/* YouTube Tag Generator - Frontend Styles */

.ytg-frontend-wrapper {
    max-width: 100%;
    margin: 30px auto;
    border-width : 1px solid #3EE0CF14;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.ytg-frontend-container {
    background: #090E1A;
    border-radius: 12px;
    border-width : 1px solid #3EE0CF14;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ytg-frontend-title {
    margin: 0 0 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.ytg-frontend-form {
    margin-bottom: 20px;
}

.ytg-form-group {
    margin-bottom: 20px;
}

.ytg-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

/* Tag Type Toggle */
.ytg-tag-type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.ytg-tag-type-btn {
    flex: 1;
    padding: 12px 20px;
    background: #080D17;
    color: #6b7280;
    border: 2px solid #1a2332;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ytg-tag-type-btn:hover {
    border-color: #3EE0CF;
    color: #ffffff;
}

.ytg-tag-type-btn.active {
    background: #3EE0CF;
    color: #090E1A;
    border-color: #3EE0CF;
}

.ytg-tag-type-btn svg {
    flex-shrink: 0;
}


.ytg-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #1a2332;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: #080D17;
    color: #ffffff;
}

.ytg-input:focus {
    outline: none;
    border-color: #3EE0CF;
    box-shadow: 0 0 0 3px rgba(62, 224, 207, 0.1);
}

.ytg-input::placeholder {
    color: #6b7280;
}

.ytg-form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.ytg-tag-count-wrapper {
    flex: 0 0 150px;
}

.ytg-tag-count-wrapper .ytg-input {
    width: 100%;
}

.ytg-button {
    padding: 12px 30px;
    background: #3EE0CF;
    color: #090E1A;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 48px;
}

.ytg-button:hover {
    background: #35cabb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(62, 224, 207, 0.3);
}

.ytg-button:active {
    transform: translateY(0);
}

.ytg-button:disabled {
    background: #1a2332;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.ytg-button-secondary {
    background: transparent;
    color: #3EE0CF;
    border: 2px solid #3EE0CF;
    padding: 8px 20px;
    font-size: 14px;
    flex: 0 0 auto;
    min-height: auto;
}

.ytg-button-secondary:hover {
    background: #3EE0CF;
    color: #090E1A;
}

/* Spinner */
.ytg-spinner {
    animation: ytg-rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.ytg-spinner .path {
    stroke: #090E1A;
    stroke-linecap: round;
    animation: ytg-dash 1.5s ease-in-out infinite;
}

@keyframes ytg-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ytg-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Alert/Error */
.ytg-frontend-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: ytg-slideDown 0.3s ease;
}

.ytg-error {
    background: #2d1515;
    border: 1px solid #5c2020;
    color: #ff6b6b;
}

.ytg-alert-icon {
    font-size: 20px;
}

.ytg-alert-message {
    flex: 1;
    font-weight: 500;
}

/* Results */
.ytg-frontend-results {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #1a2332;
    animation: ytg-slideDown 0.3s ease;
}

.ytg-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ytg-results-header h3 {
    margin: 0;
    font-size: 22px;
    color: #ffffff;
}

.ytg-tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #080D17;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 80px;
    border: 1px solid #1a2332;
}

.ytg-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #3EE0CF;
    color: #090E1A;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ytg-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(62, 224, 207, 0.3);
    background: #35cabb;
}

.ytg-tags-textarea-wrapper {
    margin-top: 20px;
}

.ytg-tags-textarea-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.ytg-tags-textarea {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 13px;
    resize: vertical;
}

.ytg-copy-icon {
    font-size: 16px;
}

/* Animations */
@keyframes ytg-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ytg-frontend-container {
        padding: 20px;
    }
    
    .ytg-frontend-title {
        font-size: 24px;
    }
    
    .ytg-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ytg-tag-count-wrapper {
        flex: 1;
    }
    
    .ytg-button {
        width: 100%;
    }
    
    .ytg-results-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .ytg-button-secondary {
        width: 100%;
    }
}

/* Dark Theme */
.ytg-theme-dark .ytg-frontend-container {
    background: #090E1A;
    color: #fff;
}

.ytg-theme-dark .ytg-frontend-title,
.ytg-theme-dark .ytg-form-group label,
.ytg-theme-dark .ytg-results-header h3,
.ytg-theme-dark .ytg-tags-textarea-wrapper label {
    color: #fff;
}

.ytg-theme-dark .ytg-input {
    background: #080D17;
    border-color: #1a2332;
    color: #fff;
}

.ytg-theme-dark .ytg-input:focus {
    border-color: #3EE0CF;
    background: #080D17;
}

.ytg-theme-dark .ytg-tags-display {
    background: #080D17;
    border-color: #1a2332;
}

.ytg-theme-dark .ytg-button {
    background: #3EE0CF;
    color: #090E1A;
}

.ytg-theme-dark .ytg-button:hover {
    background: #35cabb;
}

.ytg-theme-dark .ytg-button-secondary {
    background: transparent;
    color: #3EE0CF;
    border-color: #3EE0CF;
}

.ytg-theme-dark .ytg-button-secondary:hover {
    background: #3EE0CF;
    color: #090E1A;
}

.ytg-theme-dark .ytg-tag {
    background: #3EE0CF;
    color: #090E1A;
}

.ytg-theme-dark .ytg-tag:hover {
    background: #35cabb;
}

/* Minimal Theme */
.ytg-theme-minimal .ytg-frontend-container {
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.ytg-theme-minimal .ytg-input {
    border-radius: 4px;
}

.ytg-theme-minimal .ytg-button {
    border-radius: 4px;
}

.ytg-theme-minimal .ytg-tag {
    border-radius: 4px;
}