/* Random Number Generator Tool Styles */
.random-number-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.random-number-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 15px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.random-number-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.random-number-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 30px;
}

.random-number-hero-graphic {
    width: 100%;
    max-width: 500px;
}

.random-number-animation {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.random-digit {
    font-size: 3rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 60px;
    text-align: center;
    animation: digitPulse 2s infinite alternate;
}

@keyframes digitPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.random-digit:nth-child(1) { animation-delay: 0.1s; }
.random-digit:nth-child(2) { animation-delay: 0.3s; }
.random-digit:nth-child(3) { animation-delay: 0.5s; }
.random-digit:nth-child(4) { animation-delay: 0.7s; }
.random-digit:nth-child(5) { animation-delay: 0.9s; }

.random-number-tool {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.random-number-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.random-number-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.random-number-control-group label {
    font-weight: 600;
    color: #555;
}

.random-number-control-group input,
.random-number-control-group select {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.random-number-control-group input:focus,
.random-number-control-group select:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.random-number-generate-btn {
    padding: 15px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.random-number-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4);
}

.random-number-results {
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

.random-number-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #6e8efb;
    color: white;
}

.random-number-results-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.random-number-copy-btn {
    padding: 8px 15px;
    background: white;
    color: #6e8efb;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.random-number-copy-btn:hover {
    background: #f0f0f0;
}

.random-number-results-display {
    padding: 20px;
    min-height: 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.random-number-placeholder {
    color: #999;
    font-style: italic;
    margin: auto;
    text-align: center;
}

.random-number-result {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    font-weight: bold;
    color: #6e8efb;
}

.random-number-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.random-number-info-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.random-number-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.random-number-info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.random-number-info-box h3 {
    color: #6e8efb;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.random-number-info-box p {
    color: #666;
    line-height: 1.6;
}

.random-number-content {
    margin-bottom: 50px;
}

.random-number-content-title {
    font-size: 1.8rem;
    color: #6e8efb;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.random-number-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 2px;
}

.random-number-content p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.random-number-content-feature {
    margin-bottom: 40px;
}

.random-number-content-feature h3 {
    color: #6e8efb;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.random-number-content-feature ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.random-number-content-feature li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.random-number-uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.random-number-use-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.random-number-use-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.random-number-use-card h4 {
    color: #6e8efb;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.random-number-use-card p {
    color: #666;
    margin-bottom: 0;
}

.random-number-faq {
    margin-bottom: 50px;
}

.random-number-faq-title {
    font-size: 1.8rem;
    color: #6e8efb;
    margin-bottom: 30px;
    text-align: center;
}

.random-number-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.random-number-faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.random-number-faq-question:hover {
    background: #f9f9f9;
    color: #6e8efb;
}

.random-number-faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.random-number-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #f9f9f9;
}

.random-number-faq-answer p {
    padding: 20px 0;
    margin: 0;
    color: #555;
    line-height: 1.7;
}

.random-number-faq-item.active .random-number-faq-question {
    background: #6e8efb;
    color: white;
}

.random-number-faq-item.active .random-number-faq-icon {
    transform: rotate(45deg);
}

.random-number-faq-item.active .random-number-faq-answer {
    max-height: 500px;
    padding: 0 20px;
}

.internal-link {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.internal-link:hover {
    color: #a777e3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .random-number-tool {
        grid-template-columns: 1fr;
    }
    
    .random-number-hero h1 {
        font-size: 2rem;
    }
    
    .random-number-info-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .random-digit {
        font-size: 2rem;
        min-width: 45px;
        padding: 5px 10px;
    }
    
    .random-number-control-group input,
    .random-number-control-group select {
        padding: 10px 12px;
    }
    
    .random-number-generate-btn {
        padding: 12px;
    }
}