/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Container for centering content */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 2rem;
}

/* Quote container */
.quote-container {
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

/* Loading state */
.loading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #666;
    font-weight: 300;
}

/* Inline logo before quote content */
.inline-logo {
    display: block;
    max-width: clamp(90px, 12vw, 160px);
    height: auto;
    margin-bottom: 0.5rem;
}

/* Header row: logo left, icons right */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

/* Error state */
.error {
    color: #d32f2f;
}

.error h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.error p {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    line-height: 1.5;
}

/* Quote content */
.quote-content {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.quote-content.fade-out {
    opacity: 0;
}

/* Quote text */
.quote {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.4;
    color: #333;
    margin-bottom: 2rem;
    font-style: normal;
    quotes: none;
}

.quote::before,
.quote::after {
    content: '';
}

/* Author */
.author {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    color: #666;
    font-style: normal;
    display: block;
}

/* Action buttons */
.actions {
    display: flex;
    gap: 0.5rem;
}

.actions button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #333;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.actions button:hover {
    background: #f7f7f7;
    border-color: #d0d0d0;
}

.actions button:active {
    transform: translateY(1px);
}

/* PumpFun link styling */
.pumpfun-link {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #e5e5e5;
    background: #fff;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
    text-decoration: none;
}

.pumpfun-link:hover {
    background: #f7f7f7;
    border-color: #d0d0d0;
}

.pumpfun-link:active {
    transform: translateY(1px);
}

.pumpfun-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Contract section */
.contract-section {
    margin-top: 5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contract-section:hover {
    opacity: 1;
}

.contract-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.contract-label {
    color: #666;
    font-weight: 500;
}

.contract-value {
    color: #333;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Truncate contract address on very small screens */
@media (max-width: 480px) {
    .contract-address {
        max-width: 100%;
        overflow: hidden;
    }
    
    .contract-value {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
    }
}

.copy-btn {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
    background: #e9ecef;
    color: #333;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    color: #28a745;
}

.copy-btn.copied svg {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading animation during transitions */
.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.loading-animation.fade-out {
    opacity: 0;
}

.logo-spinner {
    width: clamp(60px, 8vw, 120px);
    height: clamp(60px, 8vw, 120px);
    animation: spin 0.8s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .quote {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .quote {
        margin-bottom: 1rem;
    }
}
