/* 500 Dolmenwood Names Generator Plugin Styles */
.dwng-container {
    max-width: 600px;
    margin: 20px 0;
    line-height: 1.6;
}

.dwng-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px 10px 0 0;
}

.dwng-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.dwng-controls {
    margin-bottom: 20px;
    padding: 0;
    background: var(--wp--preset--color--custom-cream);
    border: 2px solid var(--wp--preset--color--primary-alt);
    border-radius: 8px;
}

.dwng-controls-wrapper {
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.dwng-controls label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

#dwng-count-select {
    padding: 8px 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 80px;
    transition: border-color 0.2s ease;
}

#dwng-count-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.dwng-controls button {
    align-content: center;
    background-color: var(--wp--preset--color--main);
    border-radius: 10px;
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    font-weight: 600;
    line-height: inherit;
    padding-top: .4em;
    padding-right: 1em;
    padding-bottom: .5em;
    padding-left: 1em;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dwng-controls button:hover {
    outline: 2.5px solid rgba(255, 255, 255, 0.5);
    outline-offset: -6.5px;
    text-decoration: none;
    transform: translateY(-1px);
}

.dwng-controls button:active {
    transform: translateY(0);
}

.dwng-loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.dwng-loading span::after {
    content: '';
    animation: dwng-dots 1.5s infinite;
}

@keyframes dwng-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.dwng-results {
    background: var(--wp--preset--color--custom-cream);
    border: 2px solid var(--wp--preset--color--primary-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dwng-counter {
    background: var(--wp--preset--color--primary-accent);
    padding: 12px 20px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
}

.dwng-name-list {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.dwng-numbered-list {
    margin: 0;
    padding-left: 40px;
    columns: auto;
    column-width: 200px;
    column-gap: 30px;
}

.dwng-numbered-list li {
    margin-bottom: 8px;
    padding: 4px 0;
    break-inside: avoid;
    transition: background-color 0.2s ease;
}

.dwng-export-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 20px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.dwng-export-buttons button {
    align-content: center;
    background-color: var(--wp--preset--color--main);
    border-radius: 10px;
    border-width: 0;
    color: var(--wp--preset--color--base);
    font-family: var(--wp--preset--font-family--barlow-condensed);
    font-size: var(--wp--preset--font-size--small);
    font-style: normal;
    font-weight: 600;
    line-height: inherit;
    padding-top: .4em;
    padding-right: 1em;
    padding-bottom: .5em;
    padding-left: 1em;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dwng-export-buttons button:hover {
    outline: 2.5px solid rgba(255, 255, 255, 0.5);
    outline-offset: -6.5px;
    text-decoration: none;
    transform: translateY(-1px);
}

.dwng-export-buttons button:active {
    transform: translateY(0);
}

.dwng-copy-feedback {
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.dwng-copy-feedback.dwng-success {
    background: #d4edda;
    color: #155724;
    border-top: 1px solid #c3e6cb;
}

.dwng-copy-feedback.dwng-error {
    background: #f8d7da;
    color: #721c24;
    border-top: 1px solid #f5c6cb;
}

.dwng-error-message {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dwng-container {
        margin: 15px 0;
    }

    .dwng-controls {
        padding: 15px;
        gap: 8px;
    }

    .dwng-numbered-list {
        columns: 1;
        column-width: auto;
    }

    .dwng-export-buttons {
        flex-direction: column;
        padding: 15px;
    }

    .dwng-export-buttons button {
        min-width: auto;
        flex: none;
    }
}

@media (max-width: 480px) {
    .dwng-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .dwng-controls label {
        text-align: center;
    }

    #dwng-count-select {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .dwng-controls,
    .dwng-export-buttons,
    .dwng-copy-feedback {
        display: none;
    }

    .dwng-results {
        box-shadow: none;
        border: 1px solid #000;
    }

    .dwng-numbered-list {
        columns: 2;
        column-gap: 40px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dwng-controls {
        border: 2px solid;
    }

    .dwng-results {
        border: 2px solid;
    }
}

.rng-loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.rng-loading span::after {
    content: '';
    animation: rng-dots 1.5s infinite;
}

@keyframes rng-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.rng-results {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rng-counter {
    background: #e9ecef;
    padding: 12px 20px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
}

.rng-name-list {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.rng-numbered-list {
    margin: 0;
    padding-left: 20px;
    columns: auto;
    column-width: 200px;
    column-gap: 30px;
}

.rng-numbered-list li {
    margin-bottom: 8px;
    padding: 4px 0;
    break-inside: avoid;
    transition: background-color 0.2s ease;
}

.rng-numbered-list li:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding-left: 8px;
    margin-left: -8px;
}

/* .rng-export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.rng-export-buttons button {
    padding: 10px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.rng-export-buttons button:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.rng-export-buttons button:active {
    transform: translateY(0);
} */
#rng-copy-text:hover {
    background: #17a2b8;
}

#rng-copy-markdown:hover {
    background: #fd7e14;
}

#rng-copy-csv:hover {
    background: #28a745;
}

.rng-copy-feedback {
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.rng-copy-feedback.rng-success {
    background: #d4edda;
    color: #155724;
    border-top: 1px solid #c3e6cb;
}

.rng-copy-feedback.rng-error {
    background: #f8d7da;
    color: #721c24;
    border-top: 1px solid #f5c6cb;
}

.rng-error-message {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rng-container {
        margin: 15px 0;
    }

    .rng-controls {
        padding: 15px;
        gap: 8px;
    }

    /*     
    .rng-controls button {
        padding: 8px 16px;
        font-size: 13px;
    }
     */
    .rng-numbered-list {
        columns: 1;
        column-width: auto;
    }

    /* .rng-export-buttons {
        flex-direction: column;
        padding: 15px;
    }
    
    .rng-export-buttons button {
        min-width: auto;
        flex: none;
    } */
}

@media (max-width: 480px) {
    .rng-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .rng-controls label {
        text-align: center;
    }

    #rng-count-select {
        text-align: center;
    }
}

/* Accessibility Improvements */
.rng-controls button:focus,
.rng-export-buttons button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .rng-controls,
    .rng-export-buttons,
    .rng-copy-feedback {
        display: none;
    }

    .rng-results {
        box-shadow: none;
        border: 1px solid #000;
    }

    .rng-numbered-list {
        columns: 2;
        column-gap: 40px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rng-controls {
        border: 2px solid;
    }

    .rng-results {
        border: 2px solid;
    }

    /* .rng-controls button,
    .rng-export-buttons button {
        border: 2px solid transparent;
    }
    
    .rng-controls button:focus,
    .rng-export-buttons button:focus {
        border: 2px solid;
    } */
}