/* Skin Submission Styles */
:root {
    --primary-color: #ff8c00;
    --secondary-color: #444;
    --background-color: #1a1a1a;
    --card-background: #2a2a2a;
    --text-color: #f1f1f1;
    --border-color: #444;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #FFC107;
    --info-color: #2196F3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.page-header h1 {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-color);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.8;
}

.submission-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.info-panel {
    flex: 1;
    min-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

.form-panel {
    flex: 2;
    min-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

.info-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-card ul {
    color: var(--text-color);
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.url-example {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 12px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

.url-example code {
    color: #ddd;
}

.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.workshop-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1b2838;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 10px;
    border: 1px solid #2a475e;
}

.workshop-link:hover {
    background-color: #2a475e;
}

#skinSubmissionForm {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: bold;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
}

.radio-container input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label {
    color: var(--text-color);
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px; /* Minimum 16px to prevent zoom on mobile */
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    max-width: 100%;
    display: block;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
    word-break: break-word;
}

.optional {
    color: #aaa;
    font-weight: normal;
    font-size: 0.85rem;
}

.form-actions {
    margin-top: 30px;
    width: 100%;
    box-sizing: border-box;
}

.submit-button {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Success Page Styles */
.success-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-container h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.success-message {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #ff6a00);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.action-button.secondary {
    background: linear-gradient(135deg, #555, #333);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Notification System Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.notification.visible {
    transform: translateX(0);
}

.notification.error {
    background-color: #ff3b30;
    border-left: 5px solid #cc2e27;
}

.notification.success {
    background-color: #34c759;
    border-left: 5px solid #28a745;
}

.notification.warning {
    background-color: #ff9500;
    border-left: 5px solid #cc7a00;
}

.notification.info {
    background-color: #007bff;
    border-left: 5px solid #0056b3;
}

.notification-icon {
    font-size: 18px;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-close {
    cursor: pointer;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    line-height: 1;
    font-size: 18px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Highlight field on error */
.field-highlight {
    border: 2px solid #ff6b3d !important;
    background-color: rgba(255, 107, 61, 0.05) !important;
    box-shadow: 0 0 8px rgba(255, 107, 61, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Style for duplicate list in notifications */
.duplicate-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 13px;
}

.duplicate-list li {
    margin-bottom: 4px;
}

/* Mobile adjustments for notifications */
@media (max-width: 768px) {
    .notification {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        top: 10px;
        right: 10px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .form-panel, .info-panel {
        min-width: 100%;
        flex-basis: 100%;
        width: 100%;
    }
    
    .submission-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 10px;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    #skinSubmissionForm {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .radio-group {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .radio-container {
        margin-bottom: 8px;
    }
    
    .radio-container input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    input[type="text"],
    textarea {
        padding: 14px;
        width: 100%;
    }
    
    .submit-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    
    .success-container {
        padding: 25px 15px;
        margin: 20px auto;
    }
    
    .success-container h1 {
        font-size: 1.8rem;
    }
    
    .success-message {
        font-size: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .page-header h1 {
        margin-bottom: 5px;
    }
    
    .info-card h2 {
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 12px 10px;
    }
    
    .url-example {
        font-size: 3.2vw; /* Responsive font size based on viewport width */
        padding: 8px 6px;
    }
    
    .form-hint {
        font-size: 0.8rem;
    }
    
    .submit-button {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        min-height: 50px; /* Ensure good touch target size */
    }
    
    .form-actions {
        margin-top: 25px;
    }
    
    /* Fix for potential overflow issues */
    #skinSubmissionForm {
        max-width: 100vw;
        overflow: hidden;
        padding: 20px 15px;
    }
    
    /* Ensure inputs don't overflow */
    input[type="text"], 
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix for long URLs and code blocks */
    .url-example, code {
        font-size: 0.7rem;
    }
    
    /* Adjust list items for better mobile display */
    .info-card ul {
        padding-left: 20px;
    }
    
    .info-card li {
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .form-panel {
        min-width: 0;
        width: 100%;
        padding: 0;
    }
    
    .info-panel {
        min-width: 0;
        width: 100%;
    }
    
    .workshop-link {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 10px;
        margin-top: 15px;
        font-size: 0.9rem;
    }
    
    /* Make sure form elements don't overflow */
    input, textarea, select, button {
        max-width: 100%;
    }
}

/* Form focus and error states */
.form-group.input-focused label {
    color: var(--primary-color);
}

.field-error {
    border-color: var(--error-color) !important;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Field success state */
.field-success {
    border-color: var(--success-color) !important;
    background-color: rgba(76, 175, 80, 0.05) !important;
    transition: all 0.3s ease;
}

.field-success-message {
    color: var(--success-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease;
    padding: 4px 8px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    width: fit-content;
}

.field-success-message i {
    font-size: 14px;
    animation: pulse-success 1s ease;
}

@keyframes pulse-success {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Touch-specific styles */
@media (hover: none) {
    .submit-button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .radio-container:active {
        opacity: 0.7;
    }
    
    .info-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Larger touch targets */
    .radio-container {
        padding: 8px 0;
    }
    
    .notification-close {
        padding: 8px;
        margin: -8px;
    }
}

/* Ensure all content fits within the viewport width */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent text from overflowing containers */
p, h1, h2, h3, h4, h5, h6, li, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure form elements don't overflow */
input[type="text"],
textarea {
    max-width: 100%;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Fix for code blocks and pre elements */
code, pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

.mobile-form-panel {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-form-panel {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Force display of form */
    #skinSubmissionForm {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure container doesn't hide form */
    .submission-container {
        display: block !important;
        width: 100% !important;
    }
}

/* Add CSS for the additional skin fields and add skin button */
.additional-skins-container {
    margin-top: 10px;
}

.additional-skin-field {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
    background-color: rgba(255, 140, 0, 0.05);
    padding: 15px;
    padding-left: 25px;
    border-radius: 4px;
}

.add-skin-button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: auto;
}

.add-skin-button:hover {
    background-color: #ff9d1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.add-skin-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.add-skin-button:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.add-skin-button i {
    font-size: 16px;
}

.remove-skin-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.remove-skin-button:hover {
    background-color: #ff0000;
    transform: scale(1.1);
}

.remove-skin-button:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Error styling */
.error-field {
    border: 2px solid #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.05) !important;
    animation: shake 0.5s ease;
}

/* Notification styling */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.notification.visible {
    transform: translateX(0);
}

.notification.error {
    background-color: #ff3b30;
    border-left: 5px solid #cc2e27;
}

.notification.success {
    background-color: #34c759;
    border-left: 5px solid #28a745;
}

.notification.warning {
    background-color: #ff9500;
    border-left: 5px solid #cc7a00;
}

.notification.info {
    background-color: #007bff;
    border-left: 5px solid #0056b3;
}

.notification-icon {
    font-size: 18px;
    margin-top: 2px;
}

.notification-content {
    flex: 1;
}

.notification-close {
    cursor: pointer;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    line-height: 1;
    font-size: 18px;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Highlight field on error */
.field-highlight {
    border: 2px solid #ff6b3d !important;
    background-color: rgba(255, 107, 61, 0.05) !important;
    box-shadow: 0 0 8px rgba(255, 107, 61, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0); }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* Style for duplicate list in notifications */
.duplicate-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 13px;
}

.duplicate-list li {
    margin-bottom: 4px;
} 