/* Tool Page Styles */
.tool-content {
    margin-top: 100px;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tool Form */
.tool-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.tool-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
}

.tool-input:focus {
    outline: none;
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.1);
}

/* Textarea specific styles */
textarea.tool-input {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.tool-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #3f51b5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-button:hover {
    background: #303f9f;
    transform: translateY(-1px);
}

/* Results Section */
.results {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.results h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Title Generator Results */
.titles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.title-item {
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.title-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.title-text {
    flex: 1;
    margin-right: 1rem;
    color: #333;
}

.copy-button {
    padding: 0.5rem 1rem;
    background: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-button:hover {
    background: #303f9f;
    transform: translateY(-1px);
}

/* How to Use & Tips Sections */
.how-to-use,
.tips {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.how-to-use h2,
.tips h2 {
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.how-to-use ol,
.tips ul {
    padding-left: 1.5rem;
    margin: 0;
}

.how-to-use li,
.tips li {
    margin-bottom: 0.75rem;
    color: #666;
    line-height: 1.6;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3f51b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode */
.dark .tool-content {
    background: #1a1a1a;
}

.dark .tool-form,
.dark .results,
.dark .how-to-use,
.dark .tips {
    background: #2d2d2d;
}

.dark .tool-header h1 {
    color: white;
}

.dark .tool-description {
    color: #ccc;
}

.dark .form-group label {
    color: #ccc;
}

.dark .tool-input {
    background: #404040;
    border-color: #505050;
    color: white;
}

.dark .tool-input:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.dark .title-item {
    background: #404040;
    border-color: #505050;
}

.dark .title-text {
    color: white;
}

.dark .how-to-use li,
.dark .tips li {
    color: #ccc;
}

.dark .results h2,
.dark .how-to-use h2,
.dark .tips h2 {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-content {
        margin-top: 80px;
        padding: 1rem;
    }

    .tool-header h1 {
        font-size: 2rem;
    }

    .tool-form,
    .results,
    .how-to-use,
    .tips {
        padding: 1.5rem;
    }

    .title-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .copy-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.75rem;
    }

    .tool-description {
        font-size: 1rem;
    }

    .tool-form,
    .results,
    .how-to-use,
    .tips {
        padding: 1rem;
    }

    .tool-input {
        font-size: 0.875rem;
    }
}