/* ===========================
   PR4 Drive - Styles (Linktree Style)
   =========================== */

/* Drive Button in file list - Linktree Style */
.drive-save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.drive-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    opacity: 0.95;
}

.drive-save-btn svg {
    width: 16px;
    height: 16px;
}

.drive-save-btn.saved {
    background: var(--success-color);
}

/* Drive Modal - Linktree Style */
.drive-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.drive-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    margin: 40px auto;
    animation: slideUp 0.3s ease-out;
    box-shadow: var(--shadow-lg);
}

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

.drive-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drive-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Calibri', Arial, sans-serif;
}

.drive-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.drive-modal-body {
    padding: 24px;
}

/* Wallet Section */
.wallet-section {
    margin-bottom: 24px;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.wallet-status.connected {
    background: #e0f2fe;
    border-color: #0284c7;
}

.wallet-icon {
    width: 32px;
    height: 32px;
    color: #6b7280;
}

.wallet-status.connected .wallet-icon {
    color: #0284c7;
}

.wallet-info {
    flex: 1;
}

.wallet-label {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.wallet-address {
    font-family: monospace;
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.connect-wallet-btn {
    background: #1260A8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-wallet-btn:hover {
    background: #194B8A;
}

/* File Preview */
.file-preview-section {
    margin-bottom: 24px;
}

.file-preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 8px;
}

.file-preview-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-icon svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.file-preview-name {
    font-weight: 500;
    margin: 0 0 4px 0;
}

.file-preview-size {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.nft-input,
.nft-textarea,
.nft-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nft-input:focus,
.nft-textarea:focus,
.nft-select:focus {
    outline: none;
    border-color: #1260A8;
    box-shadow: 0 0 0 3px rgba(18, 96, 168, 0.1);
}

.nft-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Radio Group */
.radio-group {
    display: grid;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: #f3f4f6;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-mark {
    border-color: #1260A8;
}

.radio-option input[type="radio"]:checked ~ .radio-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #1260A8;
    border-radius: 50%;
}

.radio-option span:not(.radio-mark) {
    font-weight: 500;
    color: #1f2937;
}

.radio-option small {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Fee Estimation */
.fee-estimation {
    background: #fef3c7;
    border: 1px solid #D4760A;
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fee-row span {
    font-size: 14px;
    color: #92400e;
}

.fee-value {
    font-weight: 600;
    font-family: monospace;
}

.fee-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fee-disclaimer input[type="checkbox"] {
    margin-top: 2px;
}

.fee-disclaimer label {
    font-size: 13px;
    color: #92400e;
    margin: 0;
}

/* Minting Progress */
.minting-progress {
    padding: 40px 0;
}

.progress-steps {
    display: grid;
    gap: 24px;
}

.progress-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-icon {
    background: rgba(18, 96, 168, 0.08);
    animation: pulse 2s infinite;
}

.progress-step.completed .step-icon {
    background: #d1fae5;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.progress-step.active .step-icon svg {
    color: #1260A8;
}

.progress-step.completed .step-icon svg {
    color: #10b981;
}

.step-info h4 {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #1f2937;
}

.step-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Success State */
.minting-success {
    text-align: center;
    padding: 40px 0;
}

.success-animation {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease-out;
}

.success-animation svg {
    width: 40px;
    height: 40px;
    color: #10b981;
}

.minting-success h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
}

.success-message {
    color: #6b7280;
    margin-bottom: 32px;
}

.nft-details-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.nft-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.nft-detail-row span:first-child {
    color: #6b7280;
}

.nft-detail-row span:last-child,
.nft-detail-row a {
    font-family: monospace;
    color: #1260A8;
    text-decoration: none;
}

.nft-detail-row a:hover {
    text-decoration: underline;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-link:hover {
    background: #e5e7eb;
}

.action-link svg {
    width: 20px;
    height: 20px;
}

.new-nft-btn {
    padding: 12px 24px;
    background: #1260A8;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-nft-btn:hover {
    background: #194B8A;
}

/* Modal Footer - Linktree Style */
.drive-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.drive-cancel-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Calibri', Arial, sans-serif;
}

.drive-cancel-btn:hover {
    background: rgba(0,0,0,0.04);
}

.drive-save-btn-primary {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Calibri', Arial, sans-serif;
}

.drive-save-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    opacity: 0.95;
}

.drive-save-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* NFT History */
.nft-history-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.history-header h2 {
    font-size: 28px;
    margin: 0;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #f3f4f6;
}

.refresh-btn svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.nft-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nft-card-image {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-card-image svg {
    width: 60px;
    height: 60px;
    color: #d1d5db;
}

.nft-card-body {
    padding: 20px;
}

.nft-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.nft-card-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

.nft-card-actions {
    display: flex;
    gap: 8px;
}

.nft-card-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nft-card-btn:hover {
    background: #f3f4f6;
}

.nft-card-btn.primary {
    background: #1260A8;
    color: white;
    border-color: #1260A8;
}

.nft-card-btn.primary:hover {
    background: #194B8A;
}

/* Responsive */
@media (max-width: 768px) {
    .nft-modal-content {
        margin: 20px auto;
    }
    
    .nft-modal-header,
    .nft-modal-body,
    .nft-modal-footer {
        padding: 16px;
    }
    
    .wallet-status {
        flex-direction: column;
        text-align: center;
    }
    
    .success-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-link,
    .new-nft-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nft-grid {
        grid-template-columns: 1fr;
    }
}