/* Main App Styles */
.motivation-app {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Type Selector */
.type-selector h2 {
    font-size: 2rem;
    color: #5a67d8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.type-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 200px;
    justify-content: center;
}

.type-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.15);
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: .5rem;
}

.type-name {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.type-desc {
    color: #718096;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Content Display */
.content-display {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    animation: fadeIn 0.5s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h2 {
    font-size: 1.8rem;
    color: #5a67d8;
    margin: 0;
}

.content-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.category-dropdown-wrapper {
    position: relative;
    min-width: 200px;
}

.styled-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #4a5568;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.styled-select:hover {
    border-color: #cbd5e0;
}

.styled-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #718096;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.styled-select:focus+.select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #667eea;
}

/* Content Card */
.content-card {
    padding: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 600px;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.content-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.content-type {
    font-size: 1.1rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.content-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #c6f6d5;
    color: #276749;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.content-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quote-specific styling */
.content-text.quote {
    font-style: italic;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-text.joke {
    font-size: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.joke-punchline {
    font-weight: 600;
    color: #5a67d8;
    font-size: 1.5rem;
}

.quote-author {
    font-style: normal;
    font-size: 1.2rem;
    color: #718096;
    font-weight: 500;
}

.content-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.content-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: .5rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.btn.primary {
    background: #667eea;
    color: white;
}

.btn.primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn.secondary:hover:not(:disabled) {
    background: #cbd5e0;
}

.btn.outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn.outline:hover {
    background: #667eea;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Small Button Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-sm.primary {
    background: #667eea;
    color: white;
}

.btn-sm.primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-sm.secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-sm.secondary:hover:not(:disabled) {
    background: #cbd5e0;
}

.btn-sm.outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-sm.outline:hover {
    background: #667eea;
    color: white;
}

.btn-sm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    .type-selector h2,
    .content-header h2 {
        font-size: 1.5rem;
    }

    .type-card {
        padding: 1.5rem;
        min-height: 180px;
    }

    .content-header {
        flex-direction: column;
        text-align: center;
    }

    .content-controls {
        width: 100%;
        justify-content: center;
    }

    .content-card {
        padding: .7rem;
    }

    .content-text {
        font-size: 1.2rem;
        padding: 0;
        min-height: 100px;
    }

    .content-text.quote {
        font-size: 1.2rem;
    }

    .content-text.joke {
        font-size: 1.1rem;
    }

    .joke-punchline {
        font-size: 1.1rem;
    }

    .quote-author {
        font-size: 1rem;
    }

    .content-footer {
        flex-direction: column;
    }

    .btn {
        min-width: auto;
        width: 100%;
    }

    .category-dropdown-wrapper {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .type-grid {
        gap: 1rem;
    }

    .type-card {
        padding: 1.25rem;
        min-height: 160px;
    }

    .type-icon {
        font-size: 2.5rem;
    }

    .content-icon {
        font-size: 2rem;
    }

    .content-type {
        font-size: 1rem;
    }

    .content-text {
        font-size: 1.1rem;
        min-height: 80px;
    }
}

/* Tablet and larger */
@media (min-width: 600px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Copied Feedback */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}