/* ROT13 Cipher Tool Styles */
/* Location: assets/css/rot13-tool.css */

/* Tool Container */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* Tool Header */
.tool-header {
    text-align: center;
    background: rgba(0, 17, 0, 0.95);
    border: 2px solid #0f0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.tool-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #0f0;
    text-shadow: 0 0 15px #0f0, 0 0 30px #0f0;
}

.tool-subtitle {
    font-size: 1.2em;
    color: #00ffff;
    margin-bottom: 15px;
}

.tool-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #0f0;
    border-radius: 20px;
    color: #0f0;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 3px solid #0f0;
}

.breadcrumb a {
    color: #0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.breadcrumb span {
    color: #0f0;
}

/* Tool Description */
.tool-description {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.tool-description h2 {
    color: #0ff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #0ff;
}

.tool-description p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.use-cases {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.use-cases h3 {
    color: #0f0;
    margin-bottom: 10px;
}

.use-cases ul {
    list-style: none;
    padding: 0;
}

.use-cases li {
    color: #ccc;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.use-cases li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0f0;
}

/* Main Tool Box */
.tool-box {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #0ff;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Info Banner */
.info-banner {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #0ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.info-banner span:last-child {
    color: #0ff;
    font-size: 1em;
}

/* Input Group */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #0f0;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-group textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0ff;
    border-radius: 8px;
    color: #0f0;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

.input-group textarea:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.input-group textarea::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

.char-count {
    color: #0ff;
    font-size: 0.9em;
    margin-top: 5px;
    text-align: right;
}

.char-count span {
    color: #0f0;
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 30px;
    border: 2px solid;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.action-btn.primary {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border-color: #0f0;
    color: #0f0;
}

.action-btn.primary:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
    border-color: #0ff;
    color: #0ff;
}

.action-btn.secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

/* Alphabet Toggle Section */
.alphabet-toggle-section {
    margin: 25px 0;
}

.toggle-btn {
    width: 100%;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    border-radius: 8px;
    color: #0ff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.toggle-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

#alphabet-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

#alphabet-toggle-icon.rotated {
    transform: rotate(-90deg);
}

/* Alphabet Display */
.alphabet-display {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0ff;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0 25px 0;
    display: none;
}

.alphabet-display.visible {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.alphabet-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.alphabet-label {
    color: #0ff;
    font-size: 0.9em;
    font-weight: bold;
    min-width: 80px;
}

.alphabet-row code {
    color: #0f0;
    font-size: 1em;
    letter-spacing: 3px;
    background: rgba(0, 255, 0, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    flex: 1;
}

.alphabet-note {
    color: #999;
    font-size: 0.85em;
    font-style: italic;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

/* Output Group */
.output-group {
    margin-top: 25px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.output-header label {
    color: #0f0;
    font-size: 1.1em;
    font-weight: bold;
}

.copy-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 255, 0, 0.1));
    border: 2px solid #0f0;
    border-radius: 6px;
    color: #0f0;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.output-group textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0f0;
    border-radius: 8px;
    color: #0f0;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    resize: vertical;
}

.output-group textarea::placeholder {
    color: rgba(0, 255, 0, 0.5);
}

/* Examples Section */
.examples-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.examples-section h2 {
    color: #0f0;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #0f0;
}

.example-card {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.example-card:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.example-card h3 {
    color: #0ff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.example-content {
    margin-bottom: 15px;
}

.example-row {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    gap: 15px;
}

.example-label {
    color: #0ff;
    font-weight: bold;
    min-width: 70px;
}

.example-row code {
    color: #0f0;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    flex: 1;
    font-size: 1em;
}

.try-example-btn {
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    border-radius: 6px;
    color: #0ff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-example-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

/* Content Section (Educational) */
.content-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.content-section h2 {
    color: #0ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #0ff;
}

.content-section h3 {
    color: #0f0;
    font-size: 1.3em;
    margin: 25px 0 15px 0;
}

.content-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.content-section li {
    color: #ccc;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.content-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #0f0;
    font-weight: bold;
}

.formula-box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #0f0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.formula-box code {
    color: #0f0;
    font-size: 1.2em;
    font-weight: bold;
}

.warning-box {
    background: rgba(255, 100, 0, 0.1);
    border: 2px solid #ff6400;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box strong {
    color: #ff6400;
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.warning-box p {
    color: #ffb366;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0f0;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.faq-section h2 {
    color: #0f0;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #0f0;
}

.faq-item {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.faq-item h3 {
    color: #0ff;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.faq-item p {
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

/* Related Tools */
.related-tools {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.related-tools h2 {
    color: #0ff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #0ff;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-tool-card {
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-tool-card:hover {
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.related-tool-card h3 {
    color: #0f0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.related-tool-card p {
    color: #0ff;
    font-size: 0.9em;
    margin: 0;
}

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

    .tool-header h1 {
        font-size: 2em;
    }

    .tool-box {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .alphabet-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .alphabet-label {
        min-width: auto;
    }

    .alphabet-row code {
        font-size: 0.8em;
        letter-spacing: 1px;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .copy-btn {
        width: 100%;
    }

    .example-row {
        flex-direction: column;
        gap: 5px;
    }

    .example-label {
        min-width: auto;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    #matrix,
    #matrix-controls,
    .breadcrumb,
    .action-buttons,
    .copy-btn,
    .try-example-btn,
    .related-tools {
        display: none !important;
    }

    .tool-container {
        max-width: 100%;
    }

    .tool-header,
    .tool-box,
    .tool-description,
    .examples-section,
    .content-section,
    .faq-section {
        background: white !important;
        color: black !important;
        border-color: black !important;
        box-shadow: none !important;
    }

    .tool-header h1,
    .tool-description h2,
    .content-section h2,
    .content-section h3,
    .faq-section h2 {
        color: black !important;
        text-shadow: none !important;
    }
}